Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CKEDITOR - identify the selected html and read DOM XML

 
Petr Dusek
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic