Strange behavior with getCommonCharacterFormat and links
I am working on a texteditor using TLF and Flash CS5. The problem I have is that when I use getCommonCharacterFormat on a single point selection the behavior is different if I have a link-tag adjacent to the selection compared to not having it.
Think of a text like this: "Hello beautiful world!"
- When I place the cursor at the end of the text in bold the format says bold and when i continue to write the text will be in bold.
- When I place the cursor just before the text in bold the format says not bold and when i continue to write the text will not be in bold.
This makes perfectly sence to me and is exactly what I would expect to happen.
But if I make the word "beautiful" into a link the behavior is very different.
- When I place the cursor at the end of the text in bold the format says not bold but when i continue to write the text will be in bold.
- When I place the cursor just before the text in bold the format says bold but when i continue to write the text will not be in bold.
