includes/clientside/tinymce/themes/advanced/js/source_editor.js
changeset 1193 e3b94bd055dc
parent 335 67bd3121a12e
--- a/includes/clientside/tinymce/themes/advanced/js/source_editor.js	Mon Dec 21 15:41:05 2009 -0500
+++ b/includes/clientside/tinymce/themes/advanced/js/source_editor.js	Tue Dec 22 13:09:59 2009 -0500
@@ -2,7 +2,7 @@
 tinyMCEPopup.onInit.add(onLoadInit);
 
 function saveContent() {
-	tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value);
+	tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true});
 	tinyMCEPopup.close();
 }
 
@@ -13,7 +13,7 @@
 	if (tinymce.isGecko)
 		document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck");
 
-	document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent();
+	document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true});
 
 	if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) {
 		setWrap('soft');