No Code Attached Yet bug
avatar rjharishabh
rjharishabh
8 May 2021

Steps to reproduce the issue

  • Edit Article
  • Go to Images and Links tab
  • Check the checkbox with label as No Description
  • Image Description (Alt Text) not disabled.

Expected result

It should be disabled as it doesn't require as in TinyMCE

TinyMCE

tinymce

Actual result

Image Description (Alt Text) not disabled.

image-description

System information (as much as possible)

PHP 8.0.3
MySQLi 10.4.18-MariaDB
Windows 10

avatar rjharishabh rjharishabh - open - 8 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 May 2021
avatar richard67
richard67 - comment - 8 May 2021

@brianteeman Is this issue valid?

avatar brianteeman
brianteeman - comment - 8 May 2021

Technically I guess its partially correct -
if you check the No description then you are saying it should be alt=""
if you enter a description then you are saying it should be alt="description"

So you could make an argument that if one is used the other should be disabled (a step further than tinymce takes it)

However if you enter a description AND check the box we make it alt="description"
Personally I am happy with it as it is. It serves its intended purpose.

If someone wants to change that then be aware that you need to change not only the form (in about 10 places) but also the logic for how we display the alt (in even more places)

avatar rjharishabh
rjharishabh - comment - 8 May 2021

However if you enter a description AND check the box we make it alt="description"
Personally I am happy with it as it is. It serves its intended purpose.

I also want this

But without description AND check the box, it should be alt="" and disabled the field

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment