bug: use event.target for detecting contentEditable elements
bug: reload menu state when nodes are not contentEditable