remove updateMarkAttributes
This commit is contained in:
@@ -42,7 +42,7 @@ const FontFamily = Extension.create({
|
||||
*/
|
||||
fontFamily: (fontFamily: string | null = null): Command => ({ chain }) => {
|
||||
return chain()
|
||||
.updateMarkAttributes('textStyle', { fontFamily })
|
||||
.addMark('textStyle', { fontFamily })
|
||||
.removeEmptyTextStyle()
|
||||
.run()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user