Hi,
I am using fckeditor and wanted to know if there is anywhere that I can turn off the formatting of html source code?
The reason I am requesting this is because I want to create a PDF document using html but it doesnt look right with the source code formatting on.
This code with formatted tabbed spacing etc, doesnt look right.
However, when I remove all the extra spaces and tabs that FCKeditor adds, the created PDF look fine.
Would anyone be able to help. I have checked the config and looked at the documentation but cannot find anything for this.
I am using fckeditor and wanted to know if there is anywhere that I can turn off the formatting of html source code?
The reason I am requesting this is because I want to create a PDF document using html but it doesnt look right with the source code formatting on.
This code with formatted tabbed spacing etc, doesnt look right.
<table width="400" border="1"> <tbody> <tr> <td width="200" height="30">cell 1</td> <td width="200" height="30">cell 2</td> </tr> <tr> <td width="200" height="30">cell 3</td> <td width="200" bgcolor="#996699" height="30">cell 4</td> </tr> </tbody> </table>
However, when I remove all the extra spaces and tabs that FCKeditor adds, the created PDF look fine.
<table width="400" border="1"> <tbody> <tr><td width="200" height="30">cell 1</td> <td width="200" height="30">cell 2</td></tr> <tr><td width="200" height="30">cell 3</td> <td width="200" bgcolor="#996699" height="30">cell 4</td> </tr> </tbody> </table>
Would anyone be able to help. I have checked the config and looked at the documentation but cannot find anything for this.
Re: Turning off source code formatting - Please help
I had a good look hard look around after posting this message and actually found out how to fix this.
The following link shows you how to turn off the formatting
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/FormatSource
Open the configuration page ( fckconfig.js ) and change this :
FCKConfig.FormatSource = true ;
FCKConfig.FormatOutput = true;
to this :
FCKConfig.FormatSource = false;
FCKConfig.FormatOutput = false;
I'm thanking myself for this one
Re: Turning off source code formatting - Please help
These are my settings:
But, they seem to have no effect. Having these set to true or false - both seem to do nothing.
How did you get your source formatting to work? Any ideas?
Re: Turning off source code formatting - Please help
Hi Jeff,
This is my config.js file just incase it may help you compare with your own. Mine formats the code.
Hope this helps.
Re: Turning off source code formatting - Please help