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

15 lines
229 B
TypeScript
Raw Normal View History

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