tiptap/packages/extension-text/index.ts

14 lines
212 B
TypeScript
Raw Normal View History

2020-03-06 04:05:01 +08:00
import { Node } from '@tiptap/core'
2020-04-01 04:57:39 +08:00
import { NodeSpec } from 'prosemirror-model'
2020-03-06 04:05:01 +08:00
export default class Text extends Node {
name = 'text'
2020-04-01 04:57:39 +08:00
schema(): NodeSpec {
2020-03-29 06:54:49 +08:00
return {
group: 'inline',
}
2020-03-06 04:05:01 +08:00
}
}