Skip to content

Commit

Permalink
Fix tinymce error on mobile (#42306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik authored Nov 8, 2023
1 parent 5acec35 commit 9a0c7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/media_source/plg_editors_tinymce/js/tinymce.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Joomla.JoomlaTinyMCE = {
editors.forEach((editor) => {
const currentEditor = editor.querySelector('textarea');
const toggleButton = editor.querySelector('.js-tiny-toggler-button');
const toggleIcon = toggleButton.querySelector('.icon-eye');
const toggleIcon = toggleButton ? toggleButton.querySelector('.icon-eye') : false;

// Set up the editor
Joomla.JoomlaTinyMCE.setupEditor(currentEditor, pluginOptions);
Expand Down

0 comments on commit 9a0c7ff

Please sign in to comment.