ClipboardInputTransformationEvent (clipboard)



Fired with the content, dataTransfer, method, and targetRanges properties:

  • The content which comes from the clipboard (it was pasted or dropped) should be processed in order to be inserted into the editor.
  • The dataTransfer object is available in case the transformation functions need access to the raw clipboard data.
  • The method indicates the original DOM event (for example 'drop' or 'paste').
  • The targetRanges property is an array of view ranges (it is available only for 'drop').

It is a part of the clipboard input pipeline.

Note: You should not stop this event if you want to change the input data. You should modify the content property instead.



  • args : tuple

  • name : 'inputTransformation'