CKEDITOR - identify the selected html and read DOM XML
posted 2 years ago
I have discovered some usefull attributes of CKEDITOR selection object (get via ):
This returns the start and end position of the selected text - but only in relation to startContainer (element) and endContainer (element). I would like to get the absolute position in relation to the whole document or something else to identify the selected html (some intern id of the start or end element?). I would like to read this attributes on the server side and modify the selected html there. Is there some universal way to move the information about position of the selected text from the client side to the server side?
Maybe this: - but is it really some universal attribute, which I could read on the server-side too?