mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-02 01:49:02 +08:00
19 lines
396 B
TypeScript
19 lines
396 B
TypeScript
import { Node } from '@tiptap/core'
|
|
import { NodeSpec } from 'prosemirror-model'
|
|
// import ParagraphComponent from './paragraph.vue'
|
|
|
|
export default class Paragraph extends Node {
|
|
|
|
name = 'paragraph'
|
|
|
|
schema(): NodeSpec {
|
|
return {
|
|
content: 'inline*',
|
|
group: 'block',
|
|
parseDOM: [{ tag: 'p' }],
|
|
toDOM: () => ['p', 0],
|
|
// toVue: ParagraphComponent,
|
|
}
|
|
}
|
|
|
|
} |