Adding image alt text #739
-
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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.