Hello @jakob
Even though it was not discussed in that way, you can easily insert a text into an empty paragraph with InsertContent method, for instance, like that:
var oDocument = Api.GetDocument();
var oParagraph = Api.CreateParagraph();
oParagraph.AddText("This is a sample text. It was inserted here.");
oDocument.InsertContent([oParagraph], true);
Note: I’ve used
isInline
with valuetrue
so that new paragraph line is not created after execution. Default value isfalse
, use which one is required for you.
I’m not sure what do you mean by “save cursor position se we can go back to it in a new session”. If you have specific scenario for that, please create new topic with all details on the results you’d like to achieve.