Trevixal API
    Preparing search index...

    Function describeDocChange

    • What to say about a document change, or null when it speaks for itself.

      Deliberately quiet. Typing, caret movement and a single new block are all things a reader already reports from the DOM, and repeating them turns the live region into noise that users switch off. What is announced is what a reader cannot see coming: blocks disappearing, and the block under the caret becoming a different kind of thing.

      Parameters

      • before: EditorNode
      • after: EditorNode
      • OptionalblockTypeBefore: string | null
      • OptionalblockTypeAfter: string | null

      Returns string | null