Disregard the initial question.  The solution to protect CF tags  and  
prevent them from being modified is to use:

FCKConfig.ProtectedSource.Add( /<cf[\s\S]*?>/gi ) ; // ColdFusion cf  
tags - OPEN.
FCKConfig.ProtectedSource.Add( /<\/cf[\s\S]*?>/gi ) ; // ColdFusion cf  
tags - CLOSE.

Now the problem is to write a regex for everything between  
<cfquery....> and </cfquery>

I had what i though would work, but I don't think the fckeditor config  
file can use the full </cfquery> without causing an error on the  
parent CFM page.  This is what I tried:

FCKConfig.ProtectedSource.Add( /<cfquery.*</cfquery>/ ) ; //  
Everything between CFQUERY Tags

Suggestions?


On Feb 9, 2008, at 8:19 PM, Philip Hayes wrote:

> Does anybody know how to prevent FCKEDITOR from surrounding CFQUERY
> code from a loaded cfm page with <p> tags.  This apparently is
> exposing the code to the WYSIWYG edito and not treating it as source
> code.
>
> I need to be able to use FCKEditor with CFM pages that have CF code.
> Any suggestions?
>
> Thanks
>
> Phil
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298645
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to