The ProseMirror schema.
Additional options to configure the plugin's behaviour.
A related Document to store extract base64 images for.
Protected
_onProtected
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.
Protected
_onProtected
_uploadProtected
Upload any image files encountered in the drop.
The ProseMirror editor view.
The files to upload.
Optional
pos: numberThe position in the document to insert at. If not provided, the current selection will be replaced instead.
Protected
_replaceProtected
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.
Protected
_extractStatic
buildStatic
base64
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.