Show More
@@ -47,7 +47,7 b' function($,' | |||||
47 | Editor.default_codemirror_options, |
|
47 | Editor.default_codemirror_options, | |
48 | cfg.codemirror_options || {} |
|
48 | cfg.codemirror_options || {} | |
49 | ); |
|
49 | ); | |
50 |
that.set_codemirror_options(cmopts |
|
50 | that._set_codemirror_options(cmopts); | |
51 | that.events.trigger('config_changed.Editor', {config: that.config}); |
|
51 | that.events.trigger('config_changed.Editor', {config: that.config}); | |
52 | }); |
|
52 | }); | |
53 | }; |
|
53 | }; | |
@@ -113,6 +113,10 b' function($,' | |||||
113 | Editor.prototype._set_codemirror_options = function (options) { |
|
113 | Editor.prototype._set_codemirror_options = function (options) { | |
114 | // update codemirror options from a dict |
|
114 | // update codemirror options from a dict | |
115 | for (var opt in options) { |
|
115 | for (var opt in options) { | |
|
116 | if (!options.hasOwnProperty(opt)) { | |||
|
117 | continue; | |||
|
118 | } | |||
|
119 | console.log(opt, options[opt]); | |||
116 | this.codemirror.setOption(opt, options[opt]); |
|
120 | this.codemirror.setOption(opt, options[opt]); | |
117 | } |
|
121 | } | |
118 | }; |
|
122 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now