tiptap/packages/extension-text/index.ts

23 lines
323 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-10 04:59:25 +08:00
// export default new Node()
// .name('text')
// .schema(() => ({
// group: 'inline',
// }))
// .create()
2020-10-21 21:17:05 +08:00
// export default class Text extends Node {
2020-10-10 04:59:25 +08:00
2020-10-21 21:17:05 +08:00
// name = 'text'
2020-10-10 04:59:25 +08:00
2020-10-21 21:17:05 +08:00
// group = 'inline'
2020-10-10 04:59:25 +08:00
2020-10-21 21:17:05 +08:00
// }
export default createNode({
name: 'text',
group: 'inline',
})