Get the parent tags of selected tags?

Last post 06-07-2006, 4:00 PM by rokinroj. 0 replies.
Sort Posts: Previous Next
  •  06-07-2006, 4:00 PM 19888

    Get the parent tags of selected tags?

    Hello,

    I have a question about expanding on getting the selected text.  What I would like to do is if the user selects some text on the Normal tab, it would actually select the selected text plus its surrounding tags in the html. 

    For example...

    Normal Tab
    I am some text

    HTML Tab
    <span id='__ID:{EFABBE87-ECE8-4b50-9EF6-0AD8AFE9C942}'>I am some text</span>

    so if someone selected the text on the Normal tab and deleted it, it would also delete the span tags behind the scenes even though the span tags dont render on the normal tab.

    Thanks for any insight you may have with this.

    Roger
View as RSS news feed in XML