@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.
16 lines (15 loc) • 847 B
JavaScript
;
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);
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const Quill = require("quill");
const Inline = Quill.import("blots/inline");
class StrikeBlot extends Inline {
// 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法
}
__publicField(StrikeBlot, "blotName", "strike");
__publicField(StrikeBlot, "tagName", "s");
__publicField(StrikeBlot, "className", "ql-custom-strike");
exports.StrikeBlot = StrikeBlot;
//# sourceMappingURL=strike.cjs.js.map