U4-1242 Template editor sometimes stops editing.

This commit is contained in:
Sebastiaan Janssen
2013-10-05 19:26:01 +02:00
parent 2ab2a5a9f3
commit 9f3784aaed

View File

@@ -36,7 +36,9 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls.CodeEditor");
}
else {
//this is a wrapper for CodeMirror
this._editor.focus();
this._editor.setValue(code);
this._editor.focus();
}
},
GetSelection: function(code) {
@@ -150,4 +152,3 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls.CodeEditor");
return obj;
};
})(jQuery);