add image url as default caption

This commit is contained in:
bniwredyc 2023-05-07 17:32:28 +02:00
parent 1679c8289d
commit d61a1ba303

View File

@ -134,7 +134,8 @@ export const Figure = Node.create<FigureOptions>({
type: this.name,
attrs: {
src: node.attrs.src
}
},
content: [{ type: 'text', text: node.attrs.src }]
})
})
},