issues
search
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
Do: As a developer, set the
readOnly
property to
true
Do: As a user, select a word from the markdown text and press ctrl-b (to make it bold)
Observerd: The word got in bold!
Expected: No change should done on
readOnly={true}
Your environment
Mac: 13.5.1 Chrome: 116.0.5845.140
Repro
readOnly
property totrue
readOnly={true}