@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) • 463 B
JavaScript
import Quill from "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";
export {
SoftBreak as default
};
//# sourceMappingURL=soft-break.es.js.map