48 lines
746 B
JavaScript
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;
|
|
|
|
}); |