feat(editor-components): support title in image component (#1862)
This commit is contained in:
committed by
Shawn Erquhart
parent
13b126ef6b
commit
cbb7762883
@ -15,8 +15,8 @@ export default function remarkImagesToText() {
|
||||
child.children.length === 1 &&
|
||||
child.children[0].type === 'image'
|
||||
) {
|
||||
const { alt, url } = child.children[0];
|
||||
const value = ``;
|
||||
const { alt, url, title } = child.children[0];
|
||||
const value = ``;
|
||||
child.children = [{ type: 'text', value }];
|
||||
}
|
||||
return child;
|
||||
|
Reference in New Issue
Block a user