-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
JSFiddle for repro (reproducible in Chrome, Firefox and Edge)
When a CodeMirror editor is configured as read-only and the user opens a context menu, they can still see the cut and paste options.
It can be misleading since clicking on these items will do nothing.
While inspecting the elements inside the CM editor, I noticed a hidden <textarea> nested under a classless <div> styled with overflow: hidden among other things, right under <div class="CodeMirror cm-s-default">.
If I add the readonly attribute to that <textarea>, the issue seems fixed but could this lead to unwanted side effects?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels