xiatian 5 ani în urmă
părinte
comite
73df4fdda0
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  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();