Simplified and optimized editor.widgets.getByElement().