xiatian 5 năm trước cách đây
mục cha
commit
73df4fdda0
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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();