Commit 2b96774d authored by rencs's avatar rencs

10.14 百度编辑器遮挡bug

parent dd826306
......@@ -4,37 +4,43 @@
</div>
</template>
<script>
export default {
name: 'UE',
data () {
export default {
name: "UE",
data() {
return {
editor: null,
}
};
},
props: {
defaultMsg: {
type: String
type: String,
},
config: {
type: Object
type: Object,
},
editorId:{}
editorId: {},
},
mounted() {
const _this = this;
this.editor = UE.getEditor(this.editorId, this.config); // 初始化UE
this.editor.addListener("ready", function () {
_this.editor.setContent(_this.defaultMsg); // 确保UE加载完成后,放入内容。
_this.$emit('ready', _this.editor);
_this.$emit("ready", _this.editor);
});
},
methods: {
getUEContent() { // 获取内容方法
return this.editor.getContent()
}
getUEContent() {
// 获取内容方法
return this.editor.getContent();
},
},
destroyed() {
this.editor.destroy();
}
}
},
};
</script>
<style lang="scss" scoped>
.edui-default {
z-index: 0;
}
</style>>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment