当前位置: 动力学知识库 > 问答 > 编程问答 >

magento2 - Magento 2 Image Selector in Widget CMS section

问题描述:

I've created a Magento 2 widget with an image chooser (among other things). When I use this widget in the CMS and add it straight to a page (Content > Pages > Edit Page > Insert Widget), the image chooser will show up correctly, and allow me to select or upload an image.

However, if I go into the Widgets section of the CMS (Content > Widgets > Add Widget), trying to use the same image chooser part of the Widget gives Uncaught ReferenceError: MediabrowserUtility is not defined.

In the searching that I've done, it seems that it's due to TinyMCE not being loaded on this page, but I can only find code references to fix it in Magento 1.

If that is the case, how would I get the right javascript file included on the Widgets page in the CMS?

分享给朋友:
您可能感兴趣的文章:
随机阅读: