์ผ€์ด์Šค ce-0047 ยท ์‹œ๋‚˜๋ฆฌ์˜ค scenario-clipboard-api

Clipboard API paste does not work in contenteditable

OS: macOS Ubuntu 22.04 ๊ธฐ๊ธฐ: Desktop or Laptop Any ๋ธŒ๋ผ์šฐ์ €: Chrome 120.0 ํ‚ค๋ณด๋“œ: US ์ดˆ์•ˆ
clipboardapipastechrome

์ด ํŽ˜์ด์ง€๋Š” ์•„์ง ๋ฒˆ์—ญ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค

ํ˜„์žฌ ์˜์–ด ์›๋ฌธ์„ ํ‘œ์‹œํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒˆ์—ญ์— ๊ธฐ์—ฌํ•ด ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Phenomenon

When using the Clipboard API (navigator.clipboard.readText() or navigator.clipboard.read()) to programmatically paste content into a contenteditable region, the paste operation may fail or not work as expected.

Reproduction example

  1. Create a contenteditable div.
  2. Copy some text to the clipboard.
  3. Use JavaScript to read from clipboard: await navigator.clipboard.readText().
  4. Try to insert the text into the contenteditable.
  5. Observe whether the paste works correctly.

Observed behavior

  • In Chrome on macOS, Clipboard API operations may fail in contenteditable contexts.
  • Permission errors may occur.
  • The paste may not trigger expected events or behaviors.

Expected behavior

  • Clipboard API should work reliably in contenteditable contexts.
  • Permissions should be handled correctly.
  • Paste operations should trigger appropriate events.

์ด ์‹œ๋‚˜๋ฆฌ์˜ค์˜ ๋ณ€ํ˜•

์ผ€์ด์Šค OS ๋ธŒ๋ผ์šฐ์ € ์ƒํƒœ
ce-0047 macOS Ubuntu 22.04 Chrome 120.0 ์ดˆ์•ˆ
ce-0084 Windows 11 Firefox 120.0 ์ดˆ์•ˆ

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: macOS Ubuntu 22.04
Device: Desktop or Laptop Any
Browser: Chrome 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.