applyLink Not Removing Existing Hyperlinks?
Consider the following code:
private function btnEvent_RemoveHyperlink():void {
trace('removing hyperlink!');
editManager.applyLink(null, null, true);
//currentTLF.color = 0x000000;
//currentTLF.textDecoration = TextDecoration.NONE;
//editManager.applyLeafFormat(currentTLF);
}
As part of my rich editing components I'm writing for our Flex 3 apps, I've included add link and remove link functionality like a typical word processor.
From the example code I found in the latest API docs I can use appyLink with the parameters above to remove a link but it seems to only do half of the job. The formatting does not get removed unless I specifically go out of my way to do so - see commented code. Also even though it appears that the link is removed from a functional perspective, when I hold control the little hand icon still appears but clicking doesn't do anything as expected.
This seems like a bug. Any further comments?
