As I know, the Evernote editor is the Rich Text Editor and differences between the input or textarea tag, so I can not use the following code to judge the type of it, is there a method to get the current element of Evernote editor where the cursor is by JavaScript instead of jQuery?
e.target.localName.toLowerCase() === 'input' || e.target.localName.toLowerCase() === 'textarea'