Trevixal API
    Preparing search index...

    Function enableLongDocumentMode

    • Mark the editing surface while its document is long, so the stylesheet can leave the browser to skip laying out and painting the blocks off screen (content-visibility: auto): a manuscript of hundreds of pages stays as quick to type in as a page. Returns a disposer.

      Parameters

      • editor: Editor
      • threshold: number = LONG_DOCUMENT_BLOCKS

      Returns () => void