@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.
18 lines (17 loc) • 595 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Quill = require("quill");
const BlockEmbed = Quill.import("blots/block/embed");
const _DividerBlot = class _DividerBlot extends BlockEmbed {
static create() {
const node = super.create();
node.setAttribute("contenteditable", "false");
return node;
}
};
_DividerBlot.blotName = "divider";
_DividerBlot.tagName = "hr";
let DividerBlot = _DividerBlot;
Quill.register(DividerBlot);
exports.default = DividerBlot;
//# sourceMappingURL=divider.cjs.js.map