HarryChen0506 / react-markdown-editor-lite

a light-weight Markdown editor based on React. 一款轻量的基于React的markdown编辑器
https://harrychen0506.github.io/react-markdown-editor-lite/
MIT License
1.02k stars 161 forks source link

[BUG] User can still changes the content when readOnly is true with kb style shortcuts #294

Open dennisat opened 1 year ago

dennisat commented 1 year ago

Your environment

Mac: 13.5.1 Chrome: 116.0.5845.140

Repro

  1. Do: As a developer, set the readOnly property to true
  2. Do: As a user, select a word from the markdown text and press ctrl-b (to make it bold)
  3. Observerd: The word got in bold!
  4. Expected: No change should done on readOnly={true}