Skip to main content

Insert text

Insert text, or HTML (headings, lists, tables, links, formatting and pictures), at the start or end of the document, or just before or after a marker text or a bookmark, optionally with its own font formatting.

Command in the Word toolkit · id ooa.word/insert_text · 12 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TextStringYesText to insert; line breaks are kept.
PositionStringNoendWhere to insert: end, start of the document, after_text, before_text, bookmark, or cursor: where the last Insert text of this session ended (G3, AA's cursor; the end at first).
AnchorStringNoMarker text or bookmark name the position refers to.
New paragraphBooleanNotruePut the text in its own paragraph; false adds it inside the existing paragraph.
SessionStringNowordSession name.
BoldBooleanNoBold on or off for the inserted text; unchanged when empty.
ItalicBooleanNoItalic on or off for the inserted text.
UnderlineBooleanNoSingle underline on or off for the inserted text.
SizeNumberNoFont size in points for the inserted text.
ColorStringNoHex colour for the inserted text.
FontStringNoFont name for the inserted text, e.g. Calibri.
As HTMLBooleanNofalseThe text is HTML: headings, paragraphs, bold/italic/underline, colours and sizes, links, bulleted and numbered lists, tables and pictures (data: URIs or local files) become Word formatting; it always starts in its own paragraph.