##// END OF EJS Templates
setting an option to null sets the default in CodeMirror...
Min RK -
Show More
@@ -116,8 +116,11 b' function($,'
116 if (!options.hasOwnProperty(opt)) {
116 if (!options.hasOwnProperty(opt)) {
117 continue;
117 continue;
118 }
118 }
119 console.log(opt, options[opt]);
119 var value = options[opt];
120 this.codemirror.setOption(opt, options[opt]);
120 if (value === null) {
121 value = CodeMirror.defaults[opt];
122 }
123 this.codemirror.setOption(opt, value);
121 }
124 }
122 };
125 };
123
126
General Comments 0
You need to be logged in to leave comments. Login now