registerDocumentDropEditProvider

Registers a new DocumentDropEditProvider.

Multiple drop providers can be registered for a language. When dropping content into an editor, all registered providers for the editor's language will be invoked based on the mimetypes they handle as specified by their {@linkcode DocumentDropEditProviderMetadata}.

Each provider can return one or more {@linkcode DocumentDropEdit DocumentDropEdits}. The edits are sorted using the {@linkcode DocumentDropEdit.yieldTo} property. By default the first edit will be applied. If there are any additional edits, these will be shown to the user as selectable drop options in the drop widget.

Parameters

selector

A selector that defines the documents this provider applies to.

provider

A drop provider.

metadata

Additional metadata about the provider.