apply_source_formatting

(Removed in: 3.0)

This option enables you to tell TinyMCE to apply some source formatting to the output HTML code.

With this option set to true, line break characters are placed after and before some tags (defined in the options "indent_before" and "indent_after").

With this option set to false, the line breaks are stripped from the HTML source.

Example of usage of the apply_source_formatting option:

tinyMCE.init({
...
apply_source_formatting : true
});
User Image
  • 2012-05-09 09:31:53

wce01

IE6 has gone. We want the feature.

User Image
  • 2011-10-25 15:16:05

Arsen7

Would it be OK to change the header information "(Removed in: 3.0)" into something like "(Planned to be removed)" ?

User Image
  • 2011-10-25 15:11:13

Arsen7

@mlandmann: The good news is that in current version (development sources - 3.4.x) this option is still included in default configuration and works. The only difference I noticed is that the code is not indented, but just there are line breaks added after and before some tags. With this option disabled (set to false) the HTML code has no line breaks.
In the internals there are also (not yet documented) options: 'indent_before' and 'indent_after' - both have some sane defaults.

User Image
  • 2011-10-01 16:20:49

spocke

Yep, but IE6 running JavaScript on larger documents is as slow as a 8080.

User Image
  • 2011-10-01 09:31:15

mlandmann

We want this feature back, please. Who cares if we save a couple of bytes with more compact HTML. Seriously? We are not working on 8080 CPUs with 4k of memory any more. My laptop rivals a mainframe. The human efficiency and understanding the code is far more important than the computer efficiency.