making an ajax call with CKEDITOR
Retrieving Data from CKEditor
To retrieve the editor data, call the CKEDITOR.editor.getData method of the editor instance. For an editor instance with an ID of editor1, this would look like the following:
<script> var data = CKEDITOR.instances.editor1.getData(); // Your code to save "data", usually through Ajax. </script>
you also need to unicode before you do the ajax call to.
Encode a URI:
var uri = "http://w3schools.com/my test.asp?name=ståle&car=saab";
The result of res will be:
Definition and Usage
The encodeURIComponent() function encodes a URI component.
This function encodes special characters. In addition, it encodes the following characters: , / ? : @ & = + $ #
Tip: Use the decodeURIComponent() function to decode an encoded URI component.