react-markdown-editor-lite
react-markdown-editor-lite copied to clipboard
[BUG] Preview-only mode is still editable
OS and browser
Chrome 94.0.
Description
When in preview-only mode (after clicking the eye icon), if one clicks on a menu item such as "bold", "italic", etc, it will still edit the document, but incorrectly. The preview mode is not supposed to be editable.
Reproduction URL
It can be reproduced at https://harrychen0506.github.io/react-markdown-editor-lite/ by:
- Click the keyboard (edit mode) icon
- Click the eye (preview mode) icon
- Click the "B" (Bold) icon
- Click the "U" (Underline) icon
- The document preview would be changed and markdown markups would be inserted