How can I check if a selection has a link?
private function setLinkToSelection (l : String) : void
{
IEditManager(_textFlow.interactionManager).applyLink(l, "_blank");
}
...
private function onSelectionChange (e : SelectionEvent) : void
{
// How can I check if there is an link?
}
I tried IEditManager(_textFlow.interactionManager).getCommonParagraphFormat() and getCommonCharacterFormat() but there ist no LinkProperty or LinkElement.
I will do the same as in the EditorExample from Adobe.
Select a text. Set a link to this text. Select this text again. Show the link on this text selection.
Any idea?
