Adding image alt text #739
Answered
by
Saul-Mirone
leo-petrucci
asked this question in
Q&A
|
Is there any way to add alt text to an image outside of directly editing the markdown? If not, how easy is it to override the way the wysiwyg editor displays image components to add this functionality? |
Answered by
Saul-Mirone
Sep 23, 2022
Replies: 1 comment 1 reply
|
There's no way out of box for now. But it's not hard to implement by plugin. For example, editing the link by a input chip is provided by a plugin here: https://github.com/Saul-Mirone/milkdown/blob/main/packages/preset-commonmark/src/mark/link.ts#L105 And there's also a community plugin called milkdown-plugin-image-picker that provides a file picker for image. So I think it would be greate if you're willing to create a community plugin to midify the alt text of an image. |
1 reply
Answer selected by
leo-petrucci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no way out of box for now. But it's not hard to implement by plugin.
For example, editing the link by a input chip is provided by a plugin here: https://github.com/Saul-Mirone/milkdown/blob/main/packages/preset-commonmark/src/mark/link.ts#L105
And there's also a community plugin called milkdown-plugin-image-picker that provides a file picker for image.
So I think it would be greate if you're willing to create a community plugin to midify the alt text of an image.