add HTMLAttributes to defaultoptions
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import { Command, createNode } from '@tiptap/core'
|
||||
// import ParagraphComponent from './paragraph.vue'
|
||||
|
||||
export interface ParagraphOptions {
|
||||
HTMLAttributes: {
|
||||
[key: string]: any
|
||||
},
|
||||
}
|
||||
|
||||
const Paragraph = createNode({
|
||||
name: 'paragraph',
|
||||
|
||||
// defaultOptions: <ParagraphOptions>{
|
||||
// HTMLAttributes: {},
|
||||
// },
|
||||
|
||||
group: 'block',
|
||||
|
||||
content: 'inline*',
|
||||
|
||||
Reference in New Issue
Block a user