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

Issue #3474361 by mferanda: AIDmi button conflicting with link

parent cb3f60c6
Branches
Tags
No related merge requests found
......@@ -65,8 +65,11 @@ let aidmiEditedText;
existingButton.focus();
}
altTextField = mutation.target;
// Check if the alternative text form exists.
altTextForm = document.querySelector('.ck-text-alternative-form');
// Get the selected image.
imgTag = aidmiActiveEditorInstance.data.stringify(aidmiActiveEditorInstance.model.getSelectedContent(aidmiActiveEditorInstance.model.document.selection));
if (altTextField) {
if ((altTextForm) && (altTextField) && (imgTag)) {
aidmiButton(altTextField, aidmiActiveEditorInstance, imgTag);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment