fix: No value supplied for attribute src

It shouldn't be possible to have an image node with no src, but it does happen occassionally and this prevents the document from persisting. It's better to have a broken image than a doc that won't save
This commit is contained in:
Tom Moor
2023-01-07 15:26:06 -05:00
parent 53414ec3ba
commit 9617a15ae8

View File

@@ -168,7 +168,9 @@ export default class Image extends Node {
return {
inline: true,
attrs: {
src: {},
src: {
default: "",
},
width: {
default: undefined,
},