refactoring

This commit is contained in:
Philipp Kühn 2021-06-04 00:09:47 +02:00
parent 478237dc61
commit c0068d4e67

View File

@ -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