DataInsert

Data resulting from a paste or drop event.

MindDrop supports dropping and pasting text and files directly into the app. If the event is not handled directly by a target, the app will dispatch a data-insert event containing a DataInsert object.

PropertyTypeDescription
types*string[]
The types of data which were inserted. Common types include:
  • files if files were inserted.

  • text/plain if plain text was inserted.

  • text/html if HTML text was inserted.

data*Record<string, string> A [type]: [data] map of the insereted text data.
files*File[]The inserted files. Empty if no files were inserted.
view*stringThe ID of the view into which the data was inserted.
resourcestringThe ID of the resource the data was inserted into (such as topic).