]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/js/tiny_mce/themes/advanced/js/source_editor.js
Imported Upstream version 0.3
[roundcube.git] / program / js / tiny_mce / themes / advanced / js / source_editor.js
index af2231cad57d78dacbeb616c231e58a4669ecadb..279328614c5ee8a0077295a0ff7814a24d723922 100644 (file)
@@ -2,7 +2,7 @@ tinyMCEPopup.requireLangPack();
 tinyMCEPopup.onInit.add(onLoadInit);\r
 \r
 function saveContent() {\r
-       tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value);\r
+       tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true});\r
        tinyMCEPopup.close();\r
 }\r
 \r
@@ -13,7 +13,7 @@ function onLoadInit() {
        if (tinymce.isGecko)\r
                document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck");\r
 \r
-       document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent();\r
+       document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true});\r
 \r
        if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) {\r
                setWrap('soft');\r