File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CKEDITOR - identify the selected html and read DOM XML
 
Similar Threads
XML parsing examples and/or tutorials
Parsing XML string using Java Program
XML transformation
some notes on xml
My two bits