How to get the data of Ckeditor-5
Closed this issue · 3 comments
I want to retrieve data from the CKEditor-5 to save it to my local database, so how to fetch the data from it. And also there is an inbuilt functionality that helps me to apply to debounce time to store data in the database.
I am working on real-time-collaboration-for-angular.
Hi, you can get the data from the editor by calling editor.getData()
. However, make sure that you have access to the editor instance.
For more information, see our Getting and saving data guide.
Where to call the function getData(), in which module.
Can you specify the location where we can create the instance and call this function?
I am using ClassicEditorWithRealTimeCollaboration(real-time-collaboration-for-angular).
See our documentation about accessing the editor instance in Angular integration.