Hello All.

I went to great lengths to research any kind of way to prevent the fckEditor 
from stripping or changing tags.

I modified the fckconfig.js file with the following which works great in 
Firefox:

FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;      // ASP style server 
side code <%...%>
FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;    // PHP style server 
side code
FCKConfig.ProtectedSource.Add( 
/(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;   // ASP.Net 
style tags <asp:control>
FCKConfig.ProtectedSource.Add( /<cf[\s\S]*?>/gi ) ; // ColdFusion cf   tags - 
OPEN. 
FCKConfig.ProtectedSource.Add( /<\/cf[\s\S]*?>/gi ) ; // ColdFusion cf   tags - 
CLOSE. 
FCKConfig.ProtectedSource.Add( /<cfscript[\s\S]*?\/cfscript>/gi ) ; 
FCKConfig.ProtectedSource.Add( /<br[\s\S]*?\/>/g ) ;   // BR Tags
FCKConfig.ProtectedSource.Add( /<img[\s\S]*?\/>/g ) ;   // IMG Tags
FCKConfig.ProtectedSource.Add( /{exp:[\s\S]*?{\/exp:[^\}]+}/g ) ;    // 
Expression Engine style server side code 
FCKConfig.ProtectedSource.Add( /{.*?}/g ) ;
FCKConfig.ProtectedSource.Add( /<tex[\s\S]*?\/tex>/g );
FCKConfig.ProtectedSource.Add( /<object[\s|\S]+?<\/object>/gi ) ; // Protects 
<OBJECT> tags 
FCKConfig.ProtectedSource.Add( /<style[\s\S]*?\/style>/gi ) ; // Protects 
<STYLE> tags.
FCKConfig.ProtectedSource.Add( /<cfoutput[\s\S]*?\/cfoutput>/gi ) ; // Protects 
<CFOUTPUT> tags.
FCKConfig.ProtectedSource.Add( /<pre[\s\S]*?\/pre>/g );
FCKConfig.ProtectedSource.Add( /<code[\s\S]*?\/code>/g );

However in IE and Chrome I get the following in the textarea:

<p><strong><a href="index.cfm?pageID=30">Who We 
Are</a></strong><!--{13074518344360}--&gt;

My textareas are dynamically generated and that 130 number is the number that 
CF has assigned to the textarea.

Any suggestions on how I can fix this?

I have exhausted Google on this one.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345110
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to