I'm using CKEditor 4.4.
Without Code Snippet, there is no problem.
But if I put some codes with Code Snippet and save, and tried to load to CKEditor(like edit post?), it crashed with this : Uncaught SyntaxError: Unexpected token ILLEGAL (Tested in Chrome).
These are screenshots for it :
And this is code :
You can see comements. If I remove the comments, CKEditor is work but ha another problem :
Removed \r\n make code like that.
That case, looks like not big problem because short code. But imagine, what if code is longer?
Fortunately, my website is not start developing. So what should I do?
P.S.
before upload, php code
$clear = array();
$clear['content'] = $myDB->real_escape_string($_POST['txtContent']);
... Send to DB ...