M2.2.x: Script error for wysiwygAdapter

Created by Esther Nguyen, Modified on Mon, 20 Apr at 11:35 PM by Support Agent

ISSUE:

We are facing one issue:

- Creating a pop-up

- Content and Design tab

- Load template button - nothing happens, no templates load

- Script error for wysiwygAdapter:


SOLUTION:

On M2.2.11, the tinyMCE doesn't need to use wysiwygAdapter while the module is declaring wysiwygAdapter, which leads to an unexpected error and makes the button's click action not be run. 


To resolve the issue, please remove "wysiwygAdapter" declaration in line 20 in the file app/code/Bss/Popup/view/adminhtml/web/js/type_template.js:


However, please note that, from Magento 2.3.x, the tinyMCE will use and declare wysiwygAdapter, so it is necessary to add "wysiwygAdapter" again into the file app/code/Bss/Popup/view/adminhtml/web/js/type_template.js


Learn more about us:


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Browse for more at: https://bsscommerce.com/magento-2-extensions.html 


Ready to explore our top tier extensions:



If you need any further assistance, please feel free to contact us. We'd be happy to support you!


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article