onRichTextPaste property
Callback triggered when pasting a Delta to the editor.
Returns a modified Delta to override the pasted content, or null
to use the default.
The isExternal
determines whether the Delta
content is coming from
external apps.
Currently this callback is only called when pasting content from the system clipboard but that's subject to change, see #2474.
Implementation
@experimental
final Future<Delta?> Function(Delta delta, bool isExternal)? onRichTextPaste;