i'm trying to get the CKeditor to never convert characters like " to & quot ; (note i've mashed that a little cos i'm expecting it to get converted) and instead convert them to & #xxx; etc etc....
bascially i only ever want it to use the & #xxxxx; version.
i came across this
http://docs.fckeditor.net/FCKeditor_2.x ... icEntities
but it doesn't seem to work in v3
anyone have any similar issues...?
does anyone have a definiative list of all of these and i'll write something to post process....
more interestingly does anyone know why things like & quot; exist?
(other than its very slightly easier to type )
phil
Fri, 09/18/2009 - 15:55
#1
Re: HTML codes / entities / charaters
You can force the numeric form output with editor config entry CKEDITOR.config.entities_processNumerical.
Re: HTML codes / entities / charaters
its not quite what i'm after - tho that will come in useful.
if i enter µ into the source mode and flick in and out i see the char rendered as "µ" but then i flick back to source and it has been changed to µ
i think i might have to write something to post process so that anything in
http://www.w3.org/TR/html4/sgml/entities.html#h-24.2.1
is put back in &#xxxx; format
is this possible at all?
anyone any other ideas?
Re: HTML codes / entities / charaters
CKEDITOR.config.entities_additional = '#39,#8211,#171,#187';
to not replace certain chars.
i might try to hook into this instead and replace everything not [a-z0-9] for eg.
is it possible to hook into the JS for this?
Re: HTML codes / entities / charaters
I'm also having issues with it automatically escaping characters.
I have a plug-in that is adding a custom IMG tag. It sends the user to a page that needs some variables to serve the image. For example /foo.cfm?Action=View&ID=17
Well, everytime, it changes it to: /foo.cfm?Action=View&ID=17
This makes my page think that the ID variable is actually amp;ID and it breaks my page. I've tried editing the source and removing the "amp;" portion, but as soon as I try to save or switch back out of source view, it changes it right back.
Any ideas?
Re: HTML codes / entities / charaters