itmaybejj / editoria11y-wp

WordPress wrapper for Editoria11y
GNU General Public License v2.0
6 stars 2 forks source link

Editor default alt text is causing confusing alert message #9

Closed cbirdsong closed 1 year ago

cbirdsong commented 1 year ago

The editor adds placeholder alt text of "This image has an empty alt attribute; its file name is Image.jpg". This seems to be causing Editoria11y to flag them as images with URLs for alt text and not images with empty alt text?

Two images in the Wordpress editor with "Image's text alternative is a URL" in the corner

itmaybejj commented 1 year ago

Uggh; you're right.

Hmmph; I can think of two directions to go with this -- any thoughts as to which you'd prefer?

  1. Completely ignore images with that string in their alt. This would mean they wouldn't be flagged in the live editor until after the first save. Has the advantage of being really, really easy for me, and of not heckling people the moment they click insert...but skips a test until after the first save.
  2. Add a parameter to the library to recognize certain strings as placeholders, so that these images would be immediately flagged as needing a manual check for having a blank alt.
cbirdsong commented 1 year ago

I'd do 1 if it's easy and then investigate the best way to do 2, but you may have to do 2? This is occurring for me with images that have definitely been saved.

itmaybejj commented 1 year ago

Option two implemented and shipped!