Trevixal API
    Preparing search index...

    Function selectionDocument

    • A document holding just the selected content: whole blocks for a multi-block selection, and the selected slice of a block at either end. With nothing selected the whole document is returned.

      Parameters

      • state: EditorState

      Returns EditorNode