I am trying to use the following parameters, as set in fckconfig.js (version 2.6.3) :
FCKConfig.FormatSource = true; FCKConfig.FormatOutput = true;
The documentation for these parameters are as follows, respectively:
FormatSource: When set to "true" the editor will format the XHTML when switching from WYSIWYG view to Source view, by inserting line breaks on some tags endings and indenting paragraphs, tables and lists.
FormatOutput: When set to "true" the editor will format the XHTML output by inserting line breaks on some tags endings and indenting paragraphs, tables and lists.
What this appears to be saying is that the source code (what is viewed when clicking the "Source" button in the editor) will be formatted in such a way as to be easy to read, with line breaks after certain pre-determined HTML elements. I think this means that it should be making a long string of HTML code, such as this:
<table><tbody><tr><td>Something</td><td>Something else</td><td>Something more again</td></tr><tr><td>Something</td><td>Something else</td><td>Something more again</td></tr></tbody></table>
look like this:
<table> <tbody> <tr> <td>Something</td> <td>Something else</td> <td>Something more again</td> </tr> <tr> <td>Something</td> <td>Something else</td> <td>Something more again</td> </tr> </tbody> </table>
However, setting these value to "true" has no effect. All code is still formatted in a long string as in the first example - making it very difficult to read. So, am I reading the documentation wrong? Or perhaps I am doing something wrong?
I would greatly appreciate an explanation of what these parameters are supposed to be doing, as it appears that my expectations may be wrong here. In addition it is not really clear what the difference is between these two parameters. They seem to be related, but I am not sure what the difference is.
Re: Explanation of FCKConfig.FormatSource and FCKConfig.FormatOu
Ah, whoops - my bad. I just found out that one of our developers had the settings set to false, overriding the fckconfig.js settings:
However, I am still vague on what the difference is between these two settings. Any guidance about which one does what?
Re: Explanation of FCKConfig.FormatSource and FCKConfig.FormatOu
FormatOutput on the other hand formats the output generated by the editor. So once you submit the editor data (e.g., the submit button on the demo page) the output obtained from the editor will be formatted.
Re: Explanation of FCKConfig.FormatSource and FCKConfig.FormatOu
Re: Explanation of FCKConfig.FormatSource and FCKConfig.Form
Re: Explanation of FCKConfig.FormatSource and FCKConfig.Form
I'm looking as well for the CKEditor 3 settings that do the same, I could find so far this:
http://docs.cksource.com/CKEditor_3.x/D ... Formatting