function CustomCssEditor() { } CustomCssEditor.prototype.init = function() { var self = this; self.hideBackdrop = false; self.editor = CodeMirror.fromTextArea(document.getElementById("bd-custom-css-ta"), { lineNumbers: true, mode: 'css', indentUnit: 4, theme: 'neat' }); self.editor.on("change", function (cm) { var css = cm.getValue(); self.applyCustomCss(css, false, false); }); var attachEditor=""; attachEditor += "