Files
mixly3/common/modules/mixly-modules/common/editor-base.js
2024-07-19 10:16:00 +08:00

48 lines
746 B
JavaScript

goog.loadJs('common', () => {
goog.require('Mixly.Events');
goog.require('Mixly.PageBase');
goog.provide('Mixly.EditorBase');
const { Events, PageBase } = Mixly;
class EditorBase extends PageBase {
#$btnsContent_ = null;
constructor() {
super();
}
getBtnsContent() {
return this.#$btnsContent_;
}
setBtnsContent($elem) {
this.#$btnsContent_ = $elem;
}
getValue() {
return '';
}
setValue(data, ext) {
this.removeDirty();
}
getCode() {
return this.getValue();
}
dispose() {
this.#$btnsContent_ && this.#$btnsContent_.remove();
super.dispose();
}
undo() {}
redo() {}
}
Mixly.EditorBase = EditorBase;
});