Commit cb1aff65 authored by chenqikuai's avatar chenqikuai

fix: 修复编辑器无法展示内容的bug、修复编辑器操作超出视口的bug

parent 6b7500fb
......@@ -24,12 +24,13 @@ export default class TypeSeven extends Vue {
private mounted() {
const editor = new E('.my-rich-text');
editor.config.menus = ['bold', 'head', 'link', 'italic', 'underline'];
editor.config.zIndex = 0;
editor.config.onchange = (newHtml: string) => {
this.value.value = newHtml;
};
editor.create();
editor.txt.html(this.value.data); // 重新设置编辑器内容
editor.txt.html(this.value.value); // 重新设置编辑器内容
}
}
</script>
......
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