Skip to content

Commit

Permalink
Issue #154: Consider changed item selector for JS after core 1.30.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela authored Jan 22, 2025
1 parent 6b18d70 commit 6dfde03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/tinymce-dragdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
invisible: Backdrop.t('Show button info')
};
const textToggle = '<a href="" class="tinymce-toggle-text" aria-hidden="true">' + buttonLabels.invisible + '<a>';
// Selector before core 1.30.0.
$('#edit-tb .fieldset-description').after(textToggle);
// Changed CSS class as of core 1.30.0.
$('#edit-tb .fieldset-wrapper .description').after(textToggle);
$('.tinymce-toggle-text').on('click', function (event) {
event.preventDefault();
let $toggle = $(event.target);
Expand Down

0 comments on commit 6dfde03

Please sign in to comment.