I'm using FCKeditor as bundled with ColdFusion 8.01 (version 2.5). If PCKeditor is given a string that is enclosed by less than (<) and greater than (>) signs, it will substitute all such text with an opening and closing tag. It will also try to parse the text in between into tag parameters.
e.g., supply FCKeditor with the string <herbie> and it will convert it to <herbie></herbie>
How do I prevent this behavior?
You see, a user may supply text such as:
Must be <the outside diameter and> the inside diameter.
In this case, FCKeditor will replace this with:
Must be <the and="" diameter="" outside=""></the> the inside diameter.
This is driving me nuts! Thanks for any help.
e.g., supply FCKeditor with the string <herbie> and it will convert it to <herbie></herbie>
How do I prevent this behavior?
You see, a user may supply text such as:
Must be <the outside diameter and> the inside diameter.
In this case, FCKeditor will replace this with:
Must be <the and="" diameter="" outside=""></the> the inside diameter.
This is driving me nuts! Thanks for any help.
I'm using the version bundled
I'm using the version bundled with ColdFusion 9.x and just went through this same issue. I found a solution that worked for me, it might work for you. Basically, you add a line for "ProtectedSource" in fckconfig.js like this (in my file it's around line 63):
FCKConfig.ProtectedSource.Add( /<herbie[\s\S]*?\/herbie>/g ) ; // <herbie> tag
The only thing I discoverd, which is actually pointed out in the documentation below, is that anything in between those tags will be INVISIBLE in IE when you are in Source mode.
http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/ProtectedSource.Add
In Firefox, Chrome, Opera and Safari I can still see the tag and the contents in between the tag, which is actually exactly what I want. I'm currently researching a way to make it visible in IE.
Hope this help.
Actually, now that I've re
Actually, now that I've re-read your post with my reply under it, I realize I may have misinterpreted what your problem is. Still, I'll leave my old post up in case it helps someone else when they Google it.
Anyway, your problem of having parameters inside the tag looks similar to an issue I found here, maybe this link will help you:
http://ckeditor.com/forums/Support/Inserting-Custom-Tag-through-FCK.InsertHtml-Filter