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

SelectionContentFormatNEW

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'.