Browse Source

Add the possibility to set any option in CodeMirror. Closes #209

pull/600/head
Artur Arseniev 9 years ago
parent
commit
0920d6b572
  1. 4
      src/code_manager/model/CodeMirrorEditor.js

4
src/code_manager/model/CodeMirrorEditor.js

@ -20,10 +20,8 @@ module.exports = Backbone.Model.extend({
this.editor = CodeMirror.fromTextArea(el, {
dragDrop: false,
lineWrapping: true,
lineNumbers: this.get('lineNumbers'),
readOnly: this.get('readOnly'),
mode: this.get('codeName'),
theme: this.get('theme'),
...this.attributes,
});
return this;

Loading…
Cancel
Save