If I place my html code directly into mysql it shows up fine in the editor. for example
<p><span style="font-size:16px;"><strong><span style="color:#2f4f4f;">This</span> <span style="color:#ff0000;">is cool <img alt="" src="http://www.quickjump.mobi/img/header.png" style="width: 400px; height: 58px;" /></span></strong></span></p>
but when I go to submit this is the code it writes this! with all the \ So my editor freezes up again upon reload.
<span style=\"font-size:16px;\"><strong><span style=\"color:#2f4f4f;\">This</span> <span style=\"color:#ff0000;\">is cool <img alt=\"\" src=\"http://www.quickjump.mobi/img/header.png\" style=\"width: 400px; height: 58px;\" /></span></strong></span></p>
I have done a little research and come up with stripslash? Does this get put into the ckeditor code somewhere?
Thank you in advance!
Brian
It's your backend app's fault
It's your backend app's fault - not CKEditor. Your app should protect the data when saving to DB and unprotect it when retrieving and sending to CKEditor. Apparently it does not clean up data correctly.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+