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', name: 'figure',
defaultOptions: { defaultOptions: {
// inline: false,
HTMLAttributes: {}, HTMLAttributes: {},
}, },
@@ -97,10 +96,7 @@ export const Figure = Node.create<FigureOptions>({
type: this.name, type: this.name,
attrs, attrs,
content: caption content: caption
? [{ ? [{ type: 'text', text: caption }]
type: 'text',
text: caption,
}]
: [], : [],
}) })
// set cursor at end of caption field // set cursor at end of caption field