Embedded javascript commands work, but when edited, all the quotes are converted to ’ 's - ruining the javascript because of this line:
(87 in /fckeditor.js)
text = text.replace(/'/g, "’") ;
...
text = text.replace(/'/g, "\'") ; // ’
solves this problem, but I wonder that it's been changed away from a \' to ’ for a reason that I'm missing.
ash at theleys dot net
(87 in /fckeditor.js)
text = text.replace(/'/g, "’") ;
...
text = text.replace(/'/g, "\'") ; // ’
solves this problem, but I wonder that it's been changed away from a \' to ’ for a reason that I'm missing.
ash at theleys dot net
RE: Single Quotes and Javascript
RE: Single Quotes and Javascript
RE: Single Quotes and Javascript
very helpful..when your handling this on the server side. Example of use:
//html ...
<code>
have lots of string ' " stuff.. rather
</code>
//more html.
server side extract code tags send to compiler highlight function... if fckeditor was to escape it ..would show up after highlight function.
using this for: http://blogsyndrome.com