From 534d4207e1a8cfd3a601361b46d91cedf138b89c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 26 Jan 2025 19:08:34 -0500 Subject: [PATCH] fix --- shared/editor/nodes/SimpleImage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/editor/nodes/SimpleImage.tsx b/shared/editor/nodes/SimpleImage.tsx index 3885de4fa3..8fafde3c9a 100644 --- a/shared/editor/nodes/SimpleImage.tsx +++ b/shared/editor/nodes/SimpleImage.tsx @@ -10,6 +10,7 @@ import { AttachmentValidation } from "../../validations"; import insertFiles, { Options } from "../commands/insertFiles"; import { default as ImageComponent } from "../components/Image"; import { MarkdownSerializerState } from "../lib/markdown/serializer"; +import uploadPlaceholderPlugin from "../lib/uploadPlaceholder"; import { UploadPlugin } from "../plugins/UploadPlugin"; import { ComponentProps } from "../types"; import Node from "./Node"; @@ -237,6 +238,6 @@ export default class SimpleImage extends Node { } get plugins() { - return [new UploadPlugin(this.options)]; + return [uploadPlaceholderPlugin, new UploadPlugin(this.options)]; } }