How to fix: Magento 2 widget missing param with value = 0 after insert via TinyMCE Editor
Thanks,
Qvv
Please publish the problem’s screenshot.
Some screenshots here:
Example i have a param name ‘show_title’ and configs:
Case 1:
- Setting Value = 1:
- Result in widget Short Code after press insert button: http://i.imgur.com/0AAsAWg.png
Case 2: - Setting Value = 0:
- Result in widget Short Code after press insert button, It missing ‘show_title’ param:
=> I want the shortcode get param: show_title=“0”
Thanks.
A simple solution is to use a custom dropdown control with non-zero value for the “No” option (for example, you can use the word “no” as the value).
Also, I recommend report it in the issue tracker: https://github.com/magento/magento2/issues
@dmitry_fedyuk:
Thanks for your reply. I have just think about that solution. But i can’t do it at my context ( It is a hard code and i have to update all related code if get it)
Thanks.
Qvv
Hi guys,
I have post this issue at here:
https://github.com/magento/magento2/issues/3911
Regards,
Mall.