tiptap/packages/extension-text/src/index.ts

15 lines
213 B
TypeScript
Raw Normal View History

import { Node } from '@tiptap/core'
2020-03-06 04:05:01 +08:00
const Text = Node.create({
2020-10-21 21:17:05 +08:00
name: 'text',
group: 'inline',
})
2020-10-23 04:40:40 +08:00
export default Text
2020-11-11 04:18:22 +08:00
declare module '@tiptap/core' {
2020-10-23 04:40:40 +08:00
interface AllExtensions {
Text: typeof Text,
}
}