refactor: restructure extensions
This commit is contained in:
14
packages/extension-text/src/text.ts
Normal file
14
packages/extension-text/src/text.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
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