Replace some usage of element_has_tag with macros
EEditorWidget: Remove margin before and after lists
EEditorWidget: Fix HTML structure after ending the list

Also refactor editor_widget_key_release_event