Less naive implementation of widgetsRepo.getByElement - always returns most inner widget.
Extracted constants from function, removed unnecessary safety check.
Added sample for nested widgets.
Simplified and optimized editor.widgets.getByElement().
Changelog entry.
Merge branch 't/11983'