This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes CKEDITOR - identify the selected html and read DOM XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "CKEDITOR - identify the selected html and read DOM XML" Watch "CKEDITOR - identify the selected html and read DOM XML" New topic
Author

CKEDITOR - identify the selected html and read DOM XML

Petr Dusek
Greenhorn

Joined: Nov 26, 2012
Posts: 23
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?

Or this: - and then find it via DOM XML?

Thanks a lot.
 
GeeCON Prague 2014
 
subject: CKEDITOR - identify the selected html and read DOM XML