I am using CKEditor
(4.1) in my project.I would like to retain the cursor position in editor after user reloading the page. CKEditor
provides
var bookmark = editor.selection.createBookmarks();
to store the cursor position.However, if i use
var data = editor.getData()
returns the following content
<p>one</p>
<p>two<span style="display:none"> </span></p>
<p>three</p>
instead of the following
<p>one</p>
<p>two<span data-cke-bookmakrs="1" style="display:none"> </span></p>
<p>three</p>
In config.js
, I did the following thing
config.extraAllowedContent = "span[data-cke-bookmark]"
What am i missing here?
Thanks in advance for your answers and suggestions...