|
@@ -40,11 +40,12 @@ Component({
|
|
|
* 组件的方法列表
|
|
|
*/
|
|
|
methods: {
|
|
|
- _onEditorReady: async function () {
|
|
|
+ _onEditorReady: function () {
|
|
|
const that = this;
|
|
|
that.createSelectorQuery().select('#editor').context(function (res) {
|
|
|
that.editorCtx = res.context;
|
|
|
- let html = that.data.name;
|
|
|
+ let { name } = that.data;
|
|
|
+ let html = name;
|
|
|
if (html) that.editorCtx.setContents({ html })
|
|
|
}).exec()
|
|
|
},
|