pasteTextScrap makes new line at the end?
Im trying to paste a formated textScrap in a middle of a sentence, but after im pasting the text it makes me a new line at the bottom, for example if i want to paste text in the middle of this line "herehere", it should look like heretexthere
but instead it looks like:
heretext
here
code:
var pastedTextFlow:TextFlow=TextConverter.importToFlow(textToPaste,TextConverter.TEXT_LAYOUT_FORMAT);
var textScrap:TextScrap=new TextScrap(pastedTextFlow);
the same thing happends with
var pasteOperation:PasteOperation=new PasteOperation(new SelectionState(textFlow,4,4),textScrap);
_editor.editManager.pasteTextScrap(textScrap);
_editor.editManager.doOperation(pasteOperation);
any ideas?
