-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issues inserting Widgets with nested WYSIWYGs #20174
Conversation
This PR is a potential fix for issues magento#19742 and magento#13409 (Thanks to @EduardTd for pointing me in the right direction). I've tested this briefly in my own install and it appears to resolve the issue. Submitting this PR so that the issue can be tested fully.
Hi @molovo. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
I realised that tinyMCE is already being required as the wysiwygAdapter, so I've updated the code to point to that dependency instead. Still works.
Hi @sidolov, thank you for the review. |
Hi @molovo there are some problems after testing PR:
Case 2:
|
@molovo , I am closing this PR now due to inactivity. |
Hi @molovo, thank you for your contribution! |
@sidolov this PR only addresses the issues with selecting the correct WYSIWYG to insert the widget into. Regarding the errors described by @VasylShvorak above, I'm unable to reproduce Case 1 - after saving the page and clearing the cache the widget appears correctly on the front end. Case 2 occurs before applying this patch, and is caused by bugs elsewhere in the code messing up the encoding of the widget snippet which is inserted. IMO this PR should be merged, and that error addressed in a separate PR. |
Hi @orlangur, thank you for the review. |
✔️ QA passed |
Hi @molovo, thank you for your contribution! |
Description (*)
This PR fixes incorrect functionality when inserting widgets which contain a WYSIWYG field.
(Thanks to @EduardTd for pointing me in the right direction).
Fixed Issues (if relevant)
Manual testing scenarios (*)
Steps taken are the same used to reproduce #19742
(Code examples in this gist)
Contribution checklist (*)