buttonToolbar: null,
init: function(element, model, parent, template) {
- this._super(element, model, template);
+ var submodel = model.contentModels['xml'];
+ this._super(element, submodel, template);
+
this.parent = parent;
+
this.buttonToolbar = new ButtonToolbarView(
$('.xmlview-toolbar', this.element),
this.model.toolbarButtonsModel, parent);
this.editor = new CodeMirror($('.xmlview', this.element).get(0), {
parserfile: 'parsexml.js',
- path: "/static/js/lib/codemirror/",
- stylesheet: "/static/css/xmlcolors.css",
+ path: documentInfo.staticURL + "js/lib/codemirror/",
+ stylesheet: documentInfo.staticURL + "css/xmlcolors.css",
parserConfig: {
useHTMLKludges: false
},