初始化提交
This commit is contained in:
34
common/modules/mixly-modules/common/editor-welcome.js
Normal file
34
common/modules/mixly-modules/common/editor-welcome.js
Normal file
@@ -0,0 +1,34 @@
|
||||
goog.loadJs('common', () => {
|
||||
|
||||
goog.require('Mixly.XML');
|
||||
goog.require('Mixly.Env');
|
||||
goog.require('Mixly.HTMLTemplate');
|
||||
goog.require('Mixly.EditorBase');
|
||||
goog.provide('Mixly.EditorWelcome');
|
||||
|
||||
const {
|
||||
XML,
|
||||
Env,
|
||||
HTMLTemplate,
|
||||
EditorBase
|
||||
} = Mixly;
|
||||
|
||||
class EditorWelcome extends EditorBase {
|
||||
static {
|
||||
HTMLTemplate.add(
|
||||
'html/editor/editor-welcome.html',
|
||||
new HTMLTemplate(goog.get(path.join(Env.templatePath, 'html/editor/editor-welcome.html')))
|
||||
);
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.setContent(
|
||||
$(HTMLTemplate.get('html/editor/editor-welcome.html').render())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Mixly.EditorWelcome = EditorWelcome;
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user