diff --git a/packages/extension-font-family/src/font-family.ts b/packages/extension-font-family/src/font-family.ts index 3f844b64347..da5f8488f3b 100644 --- a/packages/extension-font-family/src/font-family.ts +++ b/packages/extension-font-family/src/font-family.ts @@ -44,7 +44,7 @@ export const FontFamily = Extension.create({ } return { - style: `font-family: ${CSS.escape(attributes.fontFamily)}`, + style: `font-family: ${attributes.fontFamily.split(',').map((fontFamily: string) => CSS.escape(fontFamily.trim())).join(', ')}`, } }, },