Assuming there is a Submit in your application.ĭocument.querySelector( '#submit' ). You can do that in multiple ways, for example by assigning the editor to a variable defined outside the then()'s callback: let editor Empower your imagination with Filmora, an easy-to-use video editor with powerful tools. You can retrieve the data from the editor by using the editor.getData() method.įor that, you need to store the reference to the editor because - unlike in CKEditor 4 - there is no global CKEDITOR.instances property. Wondershare Filmora (Filmora Version X for Windows) is an easy and powerful video editing software to edit & personalize videos with rich music, text, filter, element.
This is some sample content.
For instance, if you use PHP then a minimal solution would look like this: When you print the data from the database to a element in an HTML page, you need to encode it correctly. For instance, in PHP, you can get it in this way: In your HTTP server, you can now read the editor data from the content variable of the POST request. You do not need any additional JavaScript code to send the editor data to the server.
FM 11 DATA EDITOR UPDATE
create( document.querySelector( '#editor' ) )Ĭlassic editor will automatically update the value of the element once the user submits the form. This approach is only available in the Classic editor and only if the editor was used to replace a element: It is typically used in simpler CMSes, forums, comment sections, etc. This is the classic way of integrating the editor. In this guide you can learn about the available options along with their pros and cons. Home / CKEditor 5 / Installation Getting and saving dataĬKEditor 5 allows you to retrieve the data from and save it to your server (or to your system in general) in various ways.