xiatian 5 years ago
parent
commit
7bb3d61ac4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/ckeditor.vue

+ 2 - 2
src/components/ckeditor.vue

@@ -59,9 +59,9 @@ export default {
       removeButtons:
         "Underline,Subscript,Superscript,Image,HorizontalRule,Unlink,Link,Scayt,Cut,Copy,Paste,PasteText,PasteFromWord,Maximize,Italic,Bold,NumberedList,BulletedList,Indent,Outdent,Blockquote,Styles,Format,About,RemoveFormat,Strike"
     };
-    var editor = window.CKEDITOR.replace(this.id, config);
+    window.CKEDITOR.replace(this.id, config);
     this.instance.on("instanceReady", ev => {
-      editor = ev.editor;
+      let editor = ev.editor;
       editor.setReadOnly(this.readonly);
     });
     this.instance.on("change", () => {