@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.
34 lines (33 loc) • 1.03 kB
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);
import "../actions/index.es.js";
import { ImageToolbarAction } from "../actions/toolbar-action.es.js";
import { CustomResizeAction } from "../actions/custom-resize-action.es.js";
import { DeleteAction } from "../actions/delete-action.es.js";
class BlotSpec {
constructor(formatter) {
__publicField(this, "formatter");
this.formatter = formatter;
}
init() {
}
getActions() {
return [ImageToolbarAction, CustomResizeAction, DeleteAction];
}
getTargetElement() {
return null;
}
getOverlayElement() {
return this.getTargetElement();
}
setSelection() {
this.formatter.quill.setSelection(null);
}
onHide() {
}
}
export {
BlotSpec
};
//# sourceMappingURL=blot-spec.es.js.map