Inline formatting

inline:decorations:change#

Emitted when inline decoration state changes.

Type: signal.

Payload:

  • elements — event-specific value
  • changedElements — event-specific value
  • targets — event-specific value
  • options — options object passed to the operation
  • tag — event-specific value
  • attrs — attribute map (options.attrs)
  • classes — class map (options.classes)
  • styles — style map (options.styles)
  • report — decoration change report

Example:

app.on('inline:decorations:change', ({ elements, changedElements, targets, options, tag }) => {
  console.log('inline:decorations:change', { elements, changedElements, targets, options, tag });
});

inline:format#

Emitted after inline formatting is applied.

Type: signal.

Payload:

  • elements — event-specific value
  • connected — event-specific value
  • inlineElements — event-specific value
  • options — options object passed to the operation

Example:

app.on('inline:format', ({ elements, connected, inlineElements, options }) => {
  console.log('inline:format', { elements, connected, inlineElements, options });
});