refactor: recreate extension exports
This commit is contained in:
@@ -6,7 +6,7 @@ type TextAlignOptions = {
|
||||
defaultAlignment: string,
|
||||
}
|
||||
|
||||
const TextAlign = Extension.create({
|
||||
export const TextAlign = Extension.create({
|
||||
name: 'textAlign',
|
||||
|
||||
defaultOptions: <TextAlignOptions>{
|
||||
@@ -71,8 +71,6 @@ const TextAlign = Extension.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default TextAlign
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
TextAlign: typeof TextAlign,
|
||||
|
||||
Reference in New Issue
Block a user