I have a CKEditor instance where I want to manipulate the contents and restore the caret position to where it was later. The problem is that when you call setData it resets the carriage to the beginning of the editor. This is understandable if you change all the content, but I make small changes to the data.
editor.on('change', function () { var data = editor.getData();
javascript ckeditor rich-text-editor
user1082754
source share