refactor: recreate extension exports
This commit is contained in:
5
packages/extension-text/src/index.ts
Normal file
5
packages/extension-text/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Text } from './text'
|
||||
|
||||
export * from './text'
|
||||
|
||||
export default Text
|
||||
@@ -1,12 +1,10 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
const Text = Node.create({
|
||||
export const Text = Node.create({
|
||||
name: 'text',
|
||||
group: 'inline',
|
||||
})
|
||||
|
||||
export default Text
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Text: typeof Text,
|
||||
|
||||
Reference in New Issue
Block a user