After I apply a hyperlink to a textArea,delete it throw error
Applying url code is here:
var editManager:IEditManager = this.textArea.textFlow.interactionManager as IEditManager;
var tlf: TextLayoutFormat= this.textArea.getFormatOfRange(null,beginIndex,endIndex);
editManager.applyLink(value.toString(),"_blank");
tlf["color"] = 0x18479B;
tlf["textDecoration"] = TextDecoration.UNDERLINE;
this.targetTextArea.getTextFlow().interactionManager.setFocus();
After I delte , throw these error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flashx.textLayout.elements::FlowLeafElement/computeElementFormat()
at flashx.textLayout.elements::FlowLeafElement/http://ns.adobe.com/textLayout/internal/2008::createContentElement()
at flashx.textLayout.elements::SpanElement/http://ns.adobe.com/textLayout/internal/2008::createContentElement()
at flashx.textLayout.elements::FlowLeafElement/http://ns.adobe.com/textLayout/internal/2008::setParentAndRelativeStart()
at flashx.textLayout.elements::FlowGroupElement/replaceChildren()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flashx.textLayout.elements::SubParagraphGroupElement/replaceChildren()
at flashx.textLayout.elements::FlowGroupElement/deepCopy()
at flashx.textLayout.elements::FlowGroupElement/deepCopy()
at flashx.textLayout.elements::FlowGroupElement/deepCopy()
at flashx.textLayout.edit::TextFlowEdit$/createTextScrap()
at flashx.textLayout.operations::DeleteTextOperation/doOperation()
at flashx.textLayout.edit::EditManager/doInternal()
at flashx.textLayout.edit::EditManager/doOperation()
at flashx.textLayout.edit::EditManager/deletePreviousCharacter()
at flashx.textLayout.edit::EditManager/keyDownHandler()
at flashx.textLayout.container::ContainerController/keyDownHandler()
at flashx.textLayout.container::TextContainerManager/keyDownHandler()
at spark.components.supportClasses::RichEditableTextContainerManager/keyDownHandler()
