xiatian 5 年之前
父節點
當前提交
73df4fdda0
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/components/ckeditor.vue

+ 1 - 2
src/components/ckeditor.vue

@@ -61,8 +61,7 @@ export default {
     };
     window.CKEDITOR.replace(this.id, config);
     this.instance.on("instanceReady", ev => {
-      let editor = ev.editor;
-      editor.setReadOnly(this.readonly);
+      ev.editor.setReadOnly(this.readonly);
     });
     this.instance.on("change", () => {
       let html = this.instance.getData();