Browse Source

fix: set readonly to false by default

Gerald 8 years ago
parent
commit
33d079782e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/ui/code.vue

+ 1 - 1
src/common/ui/code.vue

@@ -96,7 +96,7 @@ export default {
   methods: {
     onReady(cm) {
       this.cm = cm;
-      if (this.readonly != null) cm.setOption('readOnly', true);
+      if (this.readonly) cm.setOption('readOnly', true);
       cm.state.commands = this.commands;
       cm.setOption('extraKeys', {
         Esc: 'cancel',