Get Started
Plugins
Macros
More information

Insert text

Description

Insert text into the document at the current cursor position.

(function()
{
    oDocument = Api.GetDocument();
    oParagraph = Api.CreateParagraph();
    oParagraph.AddText("Hello world!");
    oDocument.InsertContent([oParagraph]);
})();

Methods used: GetDocument, CreateParagraph, AddText, InsertContent

Result

Chart