fix image form not displaying when added as first item in markdown widget
This commit is contained in:
parent
a1b947a23e
commit
8849953b50
@ -8,8 +8,8 @@ const image = {
|
||||
alt: match[1],
|
||||
},
|
||||
toBlock: data => `![${ data.alt || '' }](${ data.image || '' })`,
|
||||
toPreview: (data, getAsset) => <img src={getAsset(data.image || '')} alt={data.alt || ''} />,
|
||||
pattern: /^!\[([^\]]+)]\(([^)]+)\)$/,
|
||||
toPreview: (data, getAsset) => <img src={getAsset(data.image) || ''} alt={data.alt || ''} />,
|
||||
pattern: /^!\[(.*)\]\((.*)\)$/,
|
||||
fields: [{
|
||||
label: 'Image',
|
||||
name: 'image',
|
||||
|
Loading…
x
Reference in New Issue
Block a user