I need to add that I use FLEX SDK 126.96.36.19976
Try calling validateNow()
Unfortunately it doesn't work
1 person found this helpful
I would say this is a bug. I looked into it and it won't insert text unless
there is focus/selection. I think that's too restrictive.
Thanks for that advice.. Now the following code works fine:
trace("ti.text='" + ti.text + "'"); ti.setFocus(); ti.insertText("abc"); trace("ti.text='" + ti.text + "'");
I looked at the code of RichEditableText - handleInsertText method... It returns from the method when no position is set and text is not appended. But do you think is there any better solution? Maybe it would be good to add simple comment for insertText method that focus has to be set, otherwise insertText won't have any effect?
I think you should file a bug with your test case at bugs.adobe.com/jira.
Either we'll update the doc, or make it so that if no position is set we