SetPropertyQuery

type SetPropertyQuery: object;

Type declaration

id?

optional id: string;

ID of the element to change

p

p: string;

Name of the property to change

v?

optional v: UnsafeJsonSerializableOrUndefined;

New value of the property.

For text area properties, you can pass a plain text string to set the text while preserving
the existing style. To set rich text with inline markup (bold, italic, links, line spacing, etc.),
prefix the text area name in p with Rich: (e.g. p: 'Rich:Text') and pass an object as
the value with the structure {t: string, m: Array} where t is the text content and m
is an array of markup entries. Each markup entry has:

  • s (number): start index
  • e (number, optional): end index
  • n (string): markup name (e.g. 'b' for bold, 'i' for italic, 'lk' for link, 'p' for line spacing)
  • v (any): markup value