

CKEditor 4 automatically updates the replaced when the form is submitted, so there is no need to change any server-side code handling form submission after enabling CKEditor on an exisiting form element. When CKEditor 4 functions as a replacement for a element, the integration with the parent element is automatic.

# Saving Data in CKEditor 4 Replacing a Textarea Note that the ID of the original element that is replaced with CKEditor was passed to the instances object to make it possible to retrieve the editor instance. If you do not save your data with a library that already encodes it by using the JavaScript encodeURIComponent method, but do it manually instead, you will have to remember to use encodeURIComponent to properly encode the data that is being sent. Your code to save "data", usually through Ajax. For an editor instance with an ID of editor1, this would look like the following: To retrieve the editor data, call the method of the editor instance. If this is the case, it is enough to use the JavaScript API methods to easily retrieve the editor instance data. This is what usually happens in inline editing - with the possibility to create and destroy CKEditor 4 instances dynamically, CKEditor 4 is a perfect match for Ajax applications. Some applications need to handle all data on the client side, sending it to the server using their specific methods. Depending on your usage scenario, the data can either be submitted to your server along with the parent element or be used in Ajax applications where editor instances are created and destroyed dynamically. The CKEditor JavaScript API makes it easy to retrieve and control the data. CKEditor 4 is a pure JavaScript component and it does not offer anything more than JavaScript methods and events to access the data so that you could save it on the server.
#Mitsubishi l3e glow plug free#
Saving data is a server-side operation and you are free to implement the save functionality on your own, in any way you like. Saving Data in CKEditor 4 Replacing a TextareaĬKEditor 4 helps you create content but it is the role of your website or application to deal with the data created in this way.

Home / CKEditor 4 / Guides Getting and Saving Data in CKEditor 4
