TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

Insert text

Description

Inserts text into the document at the current cursor position.

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

Methods used: GetDocument, CreateParagraph, AddText, InsertContent

Result

Chart