Skip to content

Commit

Permalink
Add the possibility to set any option in CodeMirror. Closes #209
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Nov 29, 2017
1 parent 9606001 commit 0920d6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/code_manager/model/CodeMirrorEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0920d6b

Please sign in to comment.