? ? NPM Resource Changed Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
16 Dec 2021

Summary of Changes

The TinyMCE toggle button does not work when the icon element is not available.

Testing Instructions

  • Put the following content into the file /templates/cassiopeia/html/layouts/joomla/tinymce/togglebutton.php:
    <div class="toggle-editor btn-toolbar float-end clearfix mt-3">
        <div class="btn-group">
      	  <button type="button" disabled class="btn btn-secondary js-tiny-toggler-button">
      		  <?php echo JText::_('PLG_TINY_BUTTON_TOGGLE_EDITOR'); ?>
      	  </button>
        </div>
    </div>
    
  • Edit an article on the front end
  • Click on the toggle editor button

Actual result BEFORE applying this Pull Request

Javascript error in dev console of the browser:
Uncaught TypeError: toggleIcon is null
setupEditors http://joomla.box/cms4/media/plg_editors_tinymce/js/tinymce.js?7e502e51b417ca05bec2d8a8aa43adec:33

Expected result AFTER applying this Pull Request

No error and editor turns into textarea.

avatar laoneo laoneo - open - 16 Dec 2021
avatar laoneo laoneo - change - 16 Dec 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Dec 2021
Category JavaScript Repository NPM Change
avatar laoneo laoneo - change - 16 Dec 2021
The description was changed
avatar laoneo laoneo - edited - 16 Dec 2021
2dd9ed2 16 Dec 2021 avatar laoneo cs
avatar laoneo laoneo - change - 16 Dec 2021
Labels Added: ? NPM Resource Changed
avatar Quy Quy - test_item - 21 Dec 2021 - Tested successfully
avatar Quy
Quy - comment - 21 Dec 2021

I have tested this item successfully on 2dd9ed2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36329.

avatar jwaisner
jwaisner - comment - 3 Jan 2022

I have tested this item successfully on 2dd9ed2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36329.

avatar jwaisner jwaisner - test_item - 3 Jan 2022 - Tested successfully
avatar jwaisner jwaisner - change - 3 Jan 2022
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 3 Jan 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36329.

avatar wilsonge wilsonge - change - 4 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-04 00:32:09
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 4 Jan 2022
avatar wilsonge wilsonge - merge - 4 Jan 2022
avatar wilsonge
wilsonge - comment - 4 Jan 2022

Thanks!

Add a Comment

Login with GitHub to post a comment