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