Fixed selection on dialog close. Fixed editor focus on widget cut in FF.
Integrated widgets with allowed content filter.
Fixed wrong loop order. Use belongsToWidget which is safer.