mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
refactoring
This commit is contained in:
parent
478237dc61
commit
c0068d4e67
@ -31,7 +31,6 @@ export const Figure = Node.create<FigureOptions>({
|
||||
name: 'figure',
|
||||
|
||||
defaultOptions: {
|
||||
// inline: false,
|
||||
HTMLAttributes: {},
|
||||
},
|
||||
|
||||
@ -97,10 +96,7 @@ export const Figure = Node.create<FigureOptions>({
|
||||
type: this.name,
|
||||
attrs,
|
||||
content: caption
|
||||
? [{
|
||||
type: 'text',
|
||||
text: caption,
|
||||
}]
|
||||
? [{ type: 'text', text: caption }]
|
||||
: [],
|
||||
})
|
||||
// set cursor at end of caption field
|
||||
|
Loading…
Reference in New Issue
Block a user