From 49a03325e82d858fc289451ae339a9739bbe6539 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sat, 9 Mar 2024 13:40:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=8C=E6=96=87=E6=9C=AC=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=8C=85=E5=90=AB=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E6=97=B6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/prosemirror/schema/marks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/prosemirror/schema/marks.ts b/src/utils/prosemirror/schema/marks.ts index 7f434cbe..7e063dad 100644 --- a/src/utils/prosemirror/schema/marks.ts +++ b/src/utils/prosemirror/schema/marks.ts @@ -132,7 +132,7 @@ const fontname: MarkSpec = { toDOM: mark => { const { fontname } = mark.attrs let style = '' - if (fontname) style += `font-family: ${fontname};` + if (fontname) style += `font-family: "${fontname}";` return ['span', { style }, 0] }, }