Added a check to make sure that the node is contentEditable before opening the editor menu.