Text editor is dirty if something can be undone
Using EditorAction to enable menu items based on active editor