add new syntax to all packages
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { Command, createExtension } from '@tiptap/core'
|
||||
import { Command, Extension } from '@tiptap/core'
|
||||
import '@tiptap/extension-text-style'
|
||||
|
||||
type FontFamilyOptions = {
|
||||
types: string[],
|
||||
}
|
||||
|
||||
const FontFamily = createExtension({
|
||||
const FontFamily = Extension.create({
|
||||
defaultOptions: <FontFamilyOptions>{
|
||||
types: ['textStyle'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user