Problems with EditManager.insertText() / EditManager.overwriteText()
How have people implemented pasting into a TextFlow?
Ok, in a browser, you can rely on the usual behaviour of cut/copy/paste - but in AIR you need to define your own behaviour. (Unless someone knows how to invoke the usual behaviour without explicitly coding something?)
If I attempt to code the behaviour for paste, then I run into the limitation for EditManager.insertText() and EditManager.overwriteText() that they behavevery strangely with strings that contain newline characters. When text alignment is set to TextFormatAlign.JUSTIFY, the final lines of paragraphs end up justified, and there is no way to correct the formatting of the text programatically. (You can only correct it by retyping return characters into the text box.)
Does anyone know a workaround for this? - Or another way to implement paste that doesn't rely on the buggy EditManager.insertText() or EditManager.overwriteText() methods?
