function xmleditor_onload(event, me) {
console.log('loading: ', me);
var textareaId = 'xmleditor-' + Math.ceil(Math.random() * 1000000000);
- $('textarea', panel).attr('id', textareaId);
+ $('textarea', me).attr('id', textareaId);
var editor = CodeMirror.fromTextArea(textareaId, {
parserfile: 'parsexml.js',
path: "/static/js/codemirror/",
})
console.log('Frame is: ', editor.frame);
var frame = $(editor.frame)
- frame.css({width: '100%', height: '100%', background: 'yellow'});
+ frame.css({width: '100%', height: '100%'});
};
function xmleditor_onunload(event, me) {}