Skip to content
Document Authoring DA  API Docs v1.17.0
npmGitHub

SelectionContentFormat>= v1.15.0

SelectionContentFormat:

type SelectionContentFormat =
| "text"
| "fragment";

The format to read the current selection in via DocAuthEditor.getSelectionContent.

  • 'text' — selected text as a plain string.
  • 'fragment' — selected content as a structured fragment object that round-trips through DocAuthEditor.insertContentAtCursor with format: 'fragment'.