Closed deagleka closed 5 years ago
@deagleka , thank you for your report. We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue ona clean installation without third party code.
magento v2.2.2 clean re-installation theme luma.
I created a new module in app/code/
folder which is a magento2 custom widget
VendorName/MyNameSpace/etc/widget.xml
<?xml version="1.0" ?>
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
<widget class="VendorName\MyNameSpace\Block\Widget\CustomWidget" id="customwidget">
<parameter name="custom_title" xsi:type="block" visible="true" required="true">
<label translate="true">TextArea</label>
<block class="VendorName\MyNameSpace\Block\Adminhtml\Widget\TextAreaField"/>
</parameter>
</widget>
</widgets>
In VendorName\MyNameSpace\Block\Adminhtml\Widget\TextAreaField.php, I created "Editor field" via \Magento\Framework\Data\Form\Element\Factory.
My Detail Step is below:
1. Go to Content -> Pages , select Home page -> edit 2. In Content Section, click the icon
3. In the widget content: There are 2 options 3.a. Input text with wysiwyg off.
Click Insert Widget It works! 3.a.a If I double click on magento widget image and try to edit it with wysiwyg on
Click Insert Widget. Check Magento-widget Snippet
You can see the content still aaa, it should be aaa now I will modify you with wysiwyg turn on.
3.b Input text with wysiwyg on.
Nothing happen , the icon magento widget doesnt show up, and there is no snippet code in the content.
In lib/web/mage/adminhtml/wysiwyg/widget.js I put a console.log() to get the result
Try setup 3.b again , Inspect and check the output
If I copy the output and paste on content, it works. So I think there is some problem with js binding param.
Here is my source code for testing.
@deagleka, thank you for your report. We've acknowledged the issue and added to our backlog.
Hi, so, what's the solution ? seems this bug is openend for a while now :(
I just spotted this issue after opening #19742. Has there been any progress with finding a solution, or any workaround someone could recommend?
Hello everyone, we close this ticket and postpone the discussion to the new one ->https://github.com/magento/magento2/issues/19742
Hi @deagleka. Thank you for your report. The issue has been fixed in magento/magento2#20174 by @molovo in 2.3-develop branch Related commit(s):
The fix will be available with the upcoming 2.3.2 release.
Preconditions Magento v2.2.2 Cache disabled
Steps to reproduce 1.created a custom widget with text field using editor to activate wysiwyg widget.xml file: `