Skip to content

Commit

Permalink
Merge pull request #1193 from plone/petschki-tinymce-link-modal-fix
Browse files Browse the repository at this point in the history
Fix `linkType` mismatch in link/image modal
  • Loading branch information
petschki authored Jul 12, 2022
2 parents 3cc4378 + 12252a5 commit 02bde25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pat/tinymce/js/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ export default Base.extend({
}

linkType = self.dom.getAttrib(self.imgElm, "data-linktype");
if (linkType) {
if (linkType && (linkType in self.linkTypes)) {
self.linkType = linkType;
self.linkTypes[self.linkType].load(self.imgElm);
// set scale selection in link modal:
Expand Down

0 comments on commit 02bde25

Please sign in to comment.