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.

19 lines (18 loc) 720 B
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); import Quill from "quill"; const BlockEmbed = Quill.import("blots/block/embed"); class DividerBlot extends BlockEmbed { static create() { const node = super.create(); node.setAttribute("contenteditable", "false"); return node; } } __publicField(DividerBlot, "blotName", "divider"); __publicField(DividerBlot, "tagName", "hr"); export { DividerBlot }; //# sourceMappingURL=divider.es.js.map