-
-
Notifications
You must be signed in to change notification settings - Fork 469
Description
Describe the issue
Text from the placeholder extension does not allow paste from the context menu on Chrome and Firefox. Safari does not appear to have this issue. Fix is possible by adding userSelect: "none" style to .cm-placeholder class via theme, but maybe this should be included by default by the extension in addition to the pointerEvents: "none" style here: https://github.com/codemirror/view/blob/main/src/placeholder.ts#L13.
Chrome
Context menu with "Paste" unavailable when right clicking on placeholder:

Context menu with "Paste" available when right clicking off placeholder:

Firefox
Context menu with "Paste" unavailable when right clicking on placeholder:

Context menu with "Paste" available when right clicking off placeholder:

Browser and platform
Chrome 134.0.6998.44, Firefox 136.0.3, macOS 15.2