add HTMLAttributes to defaultoptions
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
import { Command, createNode } from '@tiptap/core'
|
||||
import { wrappingInputRule } from 'prosemirror-inputrules'
|
||||
|
||||
export interface BlockquoteOptions {
|
||||
HTMLAttributes: {
|
||||
[key: string]: any
|
||||
},
|
||||
}
|
||||
|
||||
export const inputRegex = /^\s*>\s$/gm
|
||||
|
||||
const Blockquote = createNode({
|
||||
name: 'blockquote',
|
||||
|
||||
defaultOptions: <BlockquoteOptions>{
|
||||
HTMLAttributes: {},
|
||||
},
|
||||
|
||||
content: 'block*',
|
||||
|
||||
group: 'block',
|
||||
|
||||
Reference in New Issue
Block a user