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();