Skip to content

Commit

Permalink
fix broken html source view in chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
ahilles107 committed May 8, 2015
1 parent d117074 commit 2828d5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion newscoop/js/tinymce/themes/advanced/js/source_editor.js
Expand Up @@ -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');
Expand Down

0 comments on commit 2828d5c

Please sign in to comment.