@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.
13 lines (12 loc) • 395 B
JavaScript
import Quill from "quill";
const Inline = Quill.imports["blots/inline"];
class StrikeBlot extends Inline {
// 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法
}
StrikeBlot.blotName = "strike";
StrikeBlot.tagName = "u";
StrikeBlot.className = "ql-custom-strike";
export {
StrikeBlot as default
};
//# sourceMappingURL=strike.es.js.map