easy-markdown-editor
easy-markdown-editor copied to clipboard
Image alt text selection activates link button in toolbar
Describe the bug Setting the cursor in the alt text section of an image incorrectly activates the link button in the toolbar.
To Reproduce
 set cursor in alt text section.
Additional context
The CodeMirror state type is set to image image-alt-text link. However the EasyMDE getState() method returns link, see https://github.com/Ionaru/easy-markdown-editor/blob/master/src/js/easymde.js#L333
Looks easy enough to add a case for image there.