Skip to main content

REPLACE_TEXT

Replace existing text at the given location (cursor paragraph, cursor or xpath) with the provided content. Content can come from a flow variable (using in) or the default text input.

At a glance

  • Category Editor
  • Aliases CTX_REPLACE_TEXT
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
inOptional text or variable name to read the content from the flowContext. If omitted, the step uses the default text input.NonefalsetrueNoneNone
atWhere to replace the text. Options: XPATH, CURSOR_PARAGRAPH, CURSOR.NonefalsefalseNoneNone
xpathXPath expression used when at is XPATH.NoneConditionalfalseNoneRequired when at = XPATH
forceWriteWrite content even if the document is considered read-only.NonefalsefalseNoneNone

Examples

Replace text at cursor paragraph

- step: SET
text: "Replacement text"

- step: REPLACE_TEXT
at: CURSOR_PARAGRAPH

See Also

General Resources: