Skip to main content

How can I create a read only anchor tag in a HTML document?

No replies
markgrantham
Offline
Joined: 2006-09-13

I have implemented inserting a customised anchor tag into a HTMLDocument, but I need for it to be read only. If the user adds / removes characters from within the link, the link becomes invalid, so I need to prevent this. However, the link must be deletable and it must allow text insertion immediately before and after it. I have tried using a DocumentFilter, but this is proving to be error prone - it doesn't like inserting newlines next to the anchor.

Is there a better way of doing this?

Thanks

Mark