The ProseMirror schema.
Additional options to configure the plugin's behaviour.
A related Document to store extract base64 images for.
Handle a drop onto the editor.
The ProseMirror editor view.
The drop event.
A slice of editor content.
Whether the slice has been moved from a different part of the editor.
Handle a paste into the editor.
The ProseMirror editor view.
The paste event.
Upload any image files encountered in the drop.
The ProseMirror editor view.
The files to upload.
Capture any base64-encoded images embedded in the rich text paste and upload them.
The ProseMirror editor view.
The HTML data as a string.
An array of extracted base64 image data.
Detect base64 image data embedded in an HTML string and extract it.
The HTML data as a string.
Build the plugin.
The ProseMirror schema to build the plugin against.
Convert a base64 string into a File object.
Base64 encoded data.
The filename.
The file's mimetype.
A class responsible for handle drag-and-drop and pasting of image content. Ensuring no base64 data is injected directly into the journal content and it is instead uploaded to the user's data directory.