Hi
I am trying to get something like this:
<a id="test" name="test">some text<a>
I know usually an anchor tag doesnt have any encapsulated text in it. But I am developing a "table of contents" control and I need to automatically pick up anchors, with some text to display as the toc title. Eg: My toc would pick up "some text" as the title and "#test" as the anchor location and insert a new hyperlink <a href=#test>some text</a>
Problem: The usual anchor icon disappears the moment some text is added between the <a> tags
Problem: If I reload the text into the editor using "editdoc.body.innerHTML = ...." the anchor icons withing text don't appear, unless i switch to HTML view and back.
Thanks.