I want to track whether the content is modified by user or not, so I need to compare the string passed to fckeditor with the new value from fckeditor. But I see fckeditor will always format the input text, so the compare result is always changed even the user does not make any changes.
for example, I give fckeditor the input:
When I go the 'Source' page, I get:
<p><img alt="" width="120" height="168" src="/img/67108865_001.bmp" /></p>
I already tried these 2 config, but seems no effect.
FCKConfig.FormatSource = false ;
FCKConfig.FormatOutput = false ;
Is there any solution or workaround?
for example, I give fckeditor the input:
When I go the 'Source' page, I get:
<p><img alt="" width="120" height="168" src="/img/67108865_001.bmp" /></p>
I already tried these 2 config, but seems no effect.
FCKConfig.FormatSource = false ;
FCKConfig.FormatOutput = false ;
Is there any solution or workaround?
Re: How to Stop Source Formatting
FCKConfig.ProcessHTMLEntities = false;
Re: How to Stop Source Formatting
Thanks for your replay.
I tried this, but there is no effect.
For example, switch to 'Source' mode and paste following string:
<img src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px;" />
switch to view mode, then to 'Source' mode again. The source code changes to:
<p><img alt="" src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px;" /></p>
a p tag was added to contain the img element and the alt attribute of image was added.