directus-extension-editorjs-interface icon indicating copy to clipboard operation
directus-extension-editorjs-interface copied to clipboard

Alt Tag

Open mikepollard-sbr opened this issue 1 year ago • 2 comments

Would love to see alt tag support with the Editor Image. I did see an issue request for Alt tag support (https://github.com/editor-js/image/issues/30), but there hasn't been any move on this.

Would it be possible to extend the ImageTool here to support the Alt Tag?

mikepollard-sbr avatar Jul 18 '22 15:07 mikepollard-sbr

It is not impossible, but as far as I see, it might need to clone the image tool and use local version for it.

But honestly I do not see the use case, since there is a caption field, which could hold title/alt and there is a file.title and file.name that comes from the actual file reference, which also could be used for alts

dimitrov-adrian avatar Jul 19 '22 09:07 dimitrov-adrian

Makes sense, I can see some cases where the caption and the image being different in some articles. Where the caption text is displayed under the image maybe for copyright purposes. And the alt tag is used for accessibility purposes describing the image.

mikepollard-sbr avatar Aug 02 '22 14:08 mikepollard-sbr