editor: keep fontFamily attribute on split

This commit is contained in:
Abdullah Atta
2026-03-03 09:39:29 +05:00
parent 0e6f123265
commit 95fa1efe2b

View File

@@ -55,6 +55,7 @@ export const FontFamily = Extension.create<FontFamilyOptions>({
attributes: {
fontFamily: {
default: null,
keepOnSplit: true,
parseHTML: (element) =>
element.style.fontFamily?.replace(/['"]+/g, ""),
renderHTML: (attributes) => {