Skip to content

Commit 16cf174

Browse files
committed
增加UE富文本编辑器
1 parent 263f8b4 commit 16cf174

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ue/ue.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
},
2222
mounted() {
2323
const _this = this;
24-
this.editor = UE.getEditor('editor', this.config);
24+
this.editor = UE.getEditor('editor', this.config); // 初始化UE
2525
this.editor.addListener("ready", function () {
26-
_this.editor.setContent(_this.defaultMsg);
26+
_this.editor.setContent(_this.defaultMsg); // 确保UE加载完成后,放入内容。
2727
});
2828
},
2929
methods: {
30-
getUEContent() {
30+
getUEContent() { // 获取内容方法
3131
return this.editor.getContent()
3232
}
3333
},

0 commit comments

Comments
 (0)