From c8d51d56b2371c22e694f1fac20eba0ff97ada89 Mon Sep 17 00:00:00 2001 From: Yaakov Ellis Date: Tue, 27 Jun 2023 13:19:16 +0300 Subject: [PATCH 1/4] Add image upload warning to image-upload plugin --- src/shared/prosemirror-plugins/image-upload.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/shared/prosemirror-plugins/image-upload.ts b/src/shared/prosemirror-plugins/image-upload.ts index 440aa5e3..14759ab9 100644 --- a/src/shared/prosemirror-plugins/image-upload.ts +++ b/src/shared/prosemirror-plugins/image-upload.ts @@ -52,6 +52,10 @@ export interface ImageUploadOptions { * If true, allow users to add images via an external url */ allowExternalUrls?: boolean; + /* + * If provided, will display this warning message at the top of the image upload menu + */ + warningMessage?: string; } /** @@ -138,6 +142,8 @@ export class ImageUploader extends PluginInterfaceView< // TODO i18n this.uploadContainer.innerHTML = escapeHTML` +
+