add some extensions
This commit is contained in:
15
packages/tiptap-paragraph-extension/index.ts
Normal file
15
packages/tiptap-paragraph-extension/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
export default class Paragraph extends Node {
|
||||
|
||||
name = 'paragraph'
|
||||
|
||||
schema = {
|
||||
content: 'inline*',
|
||||
group: 'block',
|
||||
draggable: false,
|
||||
parseDOM: [{ tag: 'p' }],
|
||||
toDOM: () => ['p', 0],
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user