react-markdown-editor-lite icon indicating copy to clipboard operation
react-markdown-editor-lite copied to clipboard

[BUG] Preview-only mode is still editable

Open hugolam opened this issue 4 years ago • 0 comments

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:

  1. Click the keyboard (edit mode) icon
  2. Click the eye (preview mode) icon
  3. Click the "B" (Bold) icon
  4. Click the "U" (Underline) icon
  5. The document preview would be changed and markdown markups would be inserted

hugolam avatar Oct 22 '21 23:10 hugolam