remove updateMarkAttributes

This commit is contained in:
Philipp Kühn
2020-11-18 11:05:19 +01:00
parent 91377be21e
commit 9d99e9c9d0
7 changed files with 17 additions and 37 deletions

View File

@@ -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()
},