|
|
|
|
@ -14,8 +14,9 @@ define([
|
|
|
|
|
'codemirror/lib/codemirror',
|
|
|
|
|
'codemirror/addon/edit/matchbrackets',
|
|
|
|
|
'codemirror/addon/edit/closebrackets',
|
|
|
|
|
'codemirror/addon/comment/comment'
|
|
|
|
|
], function(utils, CodeMirror, cm_match, cm_closeb, cm_comment) {
|
|
|
|
|
'codemirror/addon/comment/comment',
|
|
|
|
|
'services/config',
|
|
|
|
|
], function(utils, CodeMirror, cm_match, cm_closeb, cm_comment, configmod) {
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
var overlayHack = CodeMirror.scrollbarModel.native.prototype.overlayHack;
|
|
|
|
|
@ -87,7 +88,12 @@ define([
|
|
|
|
|
if(this.class_config){
|
|
|
|
|
_local_cm_config = this.class_config.get_sync('cm_config');
|
|
|
|
|
}
|
|
|
|
|
config.cm_config = utils.mergeopt({}, config.cm_config, _local_cm_config);
|
|
|
|
|
|
|
|
|
|
var local = new configmod.ConfigWithDefaults(options.config,
|
|
|
|
|
{}, 'Cell');
|
|
|
|
|
var llcm = local.get_sync('cm_config');
|
|
|
|
|
|
|
|
|
|
config.cm_config = utils.mergeopt({}, config.cm_config, utils.mergeopt({}, llcm, _local_cm_config));
|
|
|
|
|
this.cell_id = utils.uuid();
|
|
|
|
|
this._options = config;
|
|
|
|
|
|
|
|
|
|
|