When an image is added with the «Image» dialogue in TinyMCE, there are input fields for “Im-age Description” and “Image Title” (cf. figure 1).
The image title pops up when on the webpage the mouse cursor is hovering over the image. The image description is used, when the image is not displayed e.g. in a text based browser like lynx or for barrier-free display of the webpage.
The source code generated by the editor for the example in figure 1:
<figure><img title="Powered By - Image Titel" src="images/powered_by.png" alt="Powered By - Image Description" />
<figcaption>Powered By - Image Caption</figcaption>
</figure>
The following problem occurs only, when in the TinyMCE editor setting the “Functionality” is set to “Extended”. With the setting on “Extended” (the only useful mode in my honest opinion), there is a function to edit the image of an already inserted in an article (menu “Insert” -> “Insert/edit image” or button with image icon). There the image description is displayed, but not the image title (figure 2).
However, TinyMCE supports to edit the image title: https://www.tinymce.com/docs/plugins/image/#image_title
It is only not enabled in the Joomla implementation of TinyMCE.
If the following line is added after line 926 in “plugins/editors/tinymce/ tinymce.php” (version from joomla 3.6.5), the image title is displayed and can be edited (cf. figure 3).
924 image_advtab: $image_advtab,
925 height : \"$html_height\",
926 width : \"$html_width\",
image_title: true,
927 });
928 ";
929 break;
Would be nice to have this code changed in future Joomla versions.
I have formatted the code correctly in the description.
Thank you for looking into it! :-)
Best regards
Michael
Status | New | ⇒ | Closed |
Closed_By | infograf768 | ⇒ | joomla-cms-bot |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-01-31 17:07:47 |
Closed_By | ⇒ | infograf768 |
Status | Closed | ⇒ | New |
Set to "closed" on behalf of @infograf768 by The JTracker Application at issues.joomla.org/joomla-cms/13818
Closed as we have a patch #13833
@Fedik
I think it's easy enough to add line 1982 in staging. Can you look at it?