UNPKG

@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) 471 B
import Quill from "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); export { DividerBlot as default }; //# sourceMappingURL=divider.es.js.map