@opentiny/fluent-editor
Version:
A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.
31 lines (30 loc) • 946 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Quill = require("quill");
const Syntax = Quill.import("modules/syntax");
class CustomSyntax extends Syntax {
}
CustomSyntax.DEFAULTS = {
hljs: (() => {
return window.hljs;
})(),
interval: 1e3,
languages: [
{ key: "plain", label: "Plain" },
{ key: "bash", label: "Bash" },
{ key: "cpp", label: "C++" },
{ key: "cs", label: "C#" },
{ key: "css", label: "CSS" },
{ key: "diff", label: "Diff" },
{ key: "xml", label: "HTML/XML" },
{ key: "java", label: "Java" },
{ key: "javascript", label: "Javascript" },
{ key: "markdown", label: "Markdown" },
{ key: "php", label: "PHP" },
{ key: "python", label: "Python" },
{ key: "ruby", label: "Ruby" },
{ key: "sql", label: "SQL" }
]
};
exports.default = CustomSyntax;
//# sourceMappingURL=syntax.cjs.js.map