Bug: double click on a widget inside TinyMCE editor does not edit the widget but creates a new one

Ti reprodude the bug you need to fix another bug Widget editing does not work: «Uncaught TypeError: Cannot read property ‘innerHTML’ of null» (and my fix)