did you get any solution ??
i am also having the same problem. but i don’t think this is a bug.
When you drag and drop the widget it uses ajax to load the “form” of the widget. and response html of ajax could not have script tag.
I am also searching solution for this 🙁