I'm using RadFlowDocument editor to insert a document in a specific position after a text from run.
So flow is read a document runs and when a text is reach insert another RawFlowDocument in it.
But the problem is always adding it in the end.
I want to insert it at specific position.
There are total 3 documents that needs to be added at specific position.
The run text shows i am at the right position but the generated document always shows new document in the end.
{
string ebrTemplateName = currentRun.Text.Substring(7, currentRun.Text.Length - 8);
var currentT = ModifyTemplate(ebrTemplateName, jsonToken + "[" + i + "].");
if (currentT != null)
{
// documents.Enqueue(new DocumentsStack { document = currentT, run = currentRun });
currentRun.GetEditorBefore().InsertDocument(currentT);
//editor.InsertDocument(currentT);
}
}