Here is what I have in my config file but I am sure the syntax is off...I had
to guess at it because they don't tell you how to add it.
I HATE will companies don't provide proper documentation
protectedSource : [
config.protectedSource.push(/[^<]*(<h1>([^<]+)<\/h1>)/g),
config.protectedSource.push( /<cfinclude[\s\S]*?\/cfinclude>/g),
config.protectedSource.push( /<cf[\s\S]*?>/g),
config.protectedSource.push( /<\/cf[\s\S]*?>/g),
config.protectedSource.push( /<a.*?><\/a>/g ) ,
config.protectedSource.push( /<cfscript[\s\S]*?\/cfscript>/g ) ,
config.protectedSource.push( /<br[\s\S]*?\/>/g ) , // BR Tags
config.protectedSource.push( /<img[\s\S]*?\/>/g ) , // IMG Tags
config.protectedSource.push( /{exp:[\s\S]*?{\/exp:[^\}]+}/g ) , //
Expression Engine style server side code
config.protectedSource.push( /{.*?}/g ) ,
config.protectedSource.push( /<tex[\s\S]*?\/tex>/g ),
config.protectedSource.push( /<object[\s|\S]+?<\/object>/g ) , // Protects
<OBJECT> tags
config.protectedSource.push( /<style[\s\S]*?\/style>/g ) , // Protects <STYLE>
tags
config.protectedSource.push( /<cfoutput[\s\S]*?\/cfoutput>/g ), // Protects
<CFOUTPUT> tags
config.protectedSource.push( /<pre[\s\S]*?\/pre>/g ),
config.protectedSource.push( /<code[\s\S]*?\/code>/g ),
config.protectedSource.push( /<cfinclude[\s\S]*?\/cfinclude>/g ),
config.protectedSource.push( /<cfloop[\s\S]*?\/cfloop>/g )
],
> You should take a look at the protectedSource method in the config
> settings (http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.
> config.html#.protectedSource).
> This allows you to use regular expressions to specify which tags
> should not be affected by the editor.
>
> On Tue, Jan 10, 2012 at 7:51 PM, Torrent Girl <[email protected]>
> wrote:
> >
> > Hi All I have had a year long headache with ckeditor and it changing
> my CF code.
> >
> > I got around the issue for a while by using a straight text area to
> enter code in the DB.
> >
> > Now other users will be using the system and I need to get the text
> editor to work.
> >
> > I STILL have not been able to figure out how to stop this thing from
> editing my CF code and I am beyond frustrated with it.
> >
> > I tried installing tinyMCE (sp?) and it did the same thing.
> >
> > Has anyone installed and used ckeditor properly with Coldfusion to
> where it is keeping your CF code in tact?
> >
> > I will pay for your help (that is how desperate I am)
> >
> > Thank you!
> >
> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:349393
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm