mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 12:14:48 +02:00
editor: keep fontFamily attribute on split
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user