Skip to content
Snippets Groups Projects
Commit 93aceb85 authored by Mike Feranda's avatar Mike Feranda
Browse files

Issue #3478158 by mferanda: Individual image description not inserting

parent 7e8a555f
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,8 @@
// Capture the current selection before opening the dialog.
captureSelection(Drupal.aidmi.activeEditorInstance);
// Open the Off-Canvas Dialog and show the retrieved description.
Drupal.aidmi.aidmiDialog(data, (isConfirmed) => {
if (isConfirmed) {
Drupal.aidmi.aidmiDialog(data, (aidmiEditedText) => {
if (aidmiEditedText) {
// Check if the imgTag has an alt attribute.
updateImageAltInCKEditor(ckEditorInstance, imgUuid, aidmiEditedText);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment