After todays [[https://gerrit.wikimedia.org/r/#/c/360371/|update]] (T162849), the gadget for adding edit summary stopped working. I tried to follow [[https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Toggle_debug_mode|this]] but found nothing. This is a default & one of most used gadget on bn.wiki, we need to fix it quickly.
* [[https://bn.wikipedia.org/s/7xbd|gadget link]] (I copied this gadget from [[https://ru.wikipedia.org/wiki/MediaWiki:Editpage.js|here]] - line 100 to 154 - same problem also there)
Please take look and fix it (If you aren't global interface editor, please suggest [[https://bn.wikipedia.org/s/92zc|here]])
Additional request: This gadget's code only work in source editing mode. we need it for visual editor also. I already read [[https://www.mediawiki.org/wiki/VisualEditor/Gadgets#Real_examples_for_gadgets.2Fscripts_that_interact_with_VE|this]] but i've no idea how to do it. So, if possible please suggest js code for enabling edit summary for visual editing mode. something like [[https://en.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-defaultsummaries.js&type=revision&diff=765892461&oldid=751128305|this]].