Trevixal API
    Preparing search index...

    Function protectRedactionsOnCopy

    • Copy, cut and a dragged selection carry the stand-in, never the words under the bars. The selection is read as the event starts, before a cut deletes it, and written after the view's own handler, over what that put there. A restriction that blocks copying stops the event before either, so nothing lands at all. Returns a disposer.

      Parameters

      • editor: Editor

      Returns () => void