Index: branches/5.3.x/core/admin_templates/js/forms.js =================================================================== diff -u -N -r15677 -r15690 --- branches/5.3.x/core/admin_templates/js/forms.js (.../forms.js) (revision 15677) +++ branches/5.3.x/core/admin_templates/js/forms.js (.../forms.js) (revision 15690) @@ -79,6 +79,18 @@ if ($.isFunction(window.CodePress)) { CodePress.run(/*FCKeditor_OnComplete*/); } + + if ( !$.isEmptyObject($CodeMirrorEditors) ) { + var $editor; + + for (var $editor_id in $CodeMirrorEditors) { + var $textarea_element = $('#' + jq($editor_id)), + $height = parseInt($textarea_element.height(), 10); + + $editor = CodeMirror.fromTextArea($textarea_element.get(0), $CodeMirrorEditors[$editor_id]); + $editor.setSize(null, $height); + } + } } function Form() {} @@ -368,4 +380,4 @@ } } return used; -} \ No newline at end of file +}