refactoring
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user