From fdcffb32075b9bb4ddefe03a17e048644c94b3f5 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Tue, 15 Nov 2022 22:48:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BF=BD=E7=95=A5=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=A1=86=E5=86=85=E7=B2=98=E8=B4=B4=E7=9A=84=20img=20=E5=92=8C?= =?UTF-8?q?=20pre=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/prosemirror/schema/nodes.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/utils/prosemirror/schema/nodes.ts b/src/utils/prosemirror/schema/nodes.ts index 0ba6f4fa..1b8eb3ec 100644 --- a/src/utils/prosemirror/schema/nodes.ts +++ b/src/utils/prosemirror/schema/nodes.ts @@ -96,7 +96,15 @@ const paragraph: NodeSpec = { return { align, indent } } - } + }, + { + tag: 'img', + ignore: true, + }, + { + tag: 'pre', + skip: true, + }, ], toDOM: (node: Node) => { const { align, indent } = node.attrs