@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.
24 lines (23 loc) • 587 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Quill = require("quill");
const Embed = Quill.imports["blots/embed"];
class SoftBreak extends Embed {
static create() {
const node = super.create();
return node;
}
optimize() {
if (this.prev === null) {
this.remove();
}
}
length() {
return 1;
}
}
SoftBreak.blotName = "soft-break";
SoftBreak.tagName = "BR";
SoftBreak.className = "ql-soft-break";
exports.default = SoftBreak;
//# sourceMappingURL=soft-break.cjs.js.map