diff --git a/newscoop/js/tinymce/themes/advanced/js/source_editor.js b/newscoop/js/tinymce/themes/advanced/js/source_editor.js index 84546ad52e..11c303f73a 100644 --- a/newscoop/js/tinymce/themes/advanced/js/source_editor.js +++ b/newscoop/js/tinymce/themes/advanced/js/source_editor.js @@ -13,7 +13,9 @@ function onLoadInit() { if (tinymce.isGecko) document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck"); - document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true}); + window.onload = function() { + document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true}); + }; if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) { setWrap('soft');