Issue #2833934: Introduce client side remove, with confirmation? and undo
Merge request reports
Activity
This change makes a couple of tweaks to the patch in post #5:
- Apply the
visually-hidden
class directly to the widget element instead of wrapping it in avisually-hidden
div.- To add the wrapper div, jQuery detaches the widget element from the DOM and this breaks the CKEditor behaviours attached to any WYSIWYG fields in the widget.
- Only trigger the first Remove button inside the field item wrapper. (There may be subform inside the paragraph widget with their own Remove buttons, which should not be triggered.)
- Some minor refactoring and cleanup.
- Apply the
Please register or sign in to reply