<![CDATA[ How to Get TinyMCE to Format HTML Source Correctly in TinyMCE 2.0.6.1 - MODX Community Forums]]> https://forums.modx.com/thread/?thread=45811 <![CDATA[Re: How to Get TinyMCE to Format HTML Source Correctly in TinyMCE 2.0.6.1]]> https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265204 ]]> rethrash Oct 10, 2006, 09:18 PM https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265204 <![CDATA[Re: How to Get TinyMCE to Format HTML Source Correctly in TinyMCE 2.0.6.1]]> https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265203 Leftblank Oct 09, 2006, 09:28 AM https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265203 <![CDATA[Re: How to Get TinyMCE to Format HTML Source Correctly in TinyMCE 2.0.6.1]]> https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265202 ]]> Bravado Oct 09, 2006, 09:07 AM https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265202 <![CDATA[How to Get TinyMCE to Format HTML Source Correctly in TinyMCE 2.0.6.1]]> https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265201
To prevent TinyMCE from stripping your newlines and uglyifying your HTML, in:

/assets/plugins/tinymce/jscripts/tiny_mce/tiny_mce.js

change:

this._def("apply_source_formatting", false);
TO
this._def("apply_source_formatting", true);

AND change:

this._def("remove_linebreaks", true);
TO
this._def("remove_linebreaks", false);


And viola, nicely readable source.]]>
splittingred Oct 09, 2006, 08:59 AM https://forums.modx.com/thread/45811/how-to-get-tinymce-to-format-html-source-correctly-in-tinymce-2-0-6-1#dis-post-265201