์ผ€์ด์Šค ce-0019 ยท ์‹œ๋‚˜๋ฆฌ์˜ค scenario-paste-plain-text

Pasting rich text inserts unwanted formatting

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

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

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

Phenomenon

When pasting content from external sources (like Word documents or web pages) into a contenteditable region, unwanted formatting is often included. There is no simple way to paste as plain text without manually stripping the formatting.

Reproduction example

  1. Copy formatted text from a Word document or web page (with bold, colors, fonts, etc.).
  2. Paste it into a contenteditable div.
  3. Observe that all the formatting is included.

Observed behavior

  • Safari pastes rich text with all formatting by default.
  • There is no built-in โ€œPaste as plain textโ€ option.
  • Manual intervention is required to strip formatting.

Expected behavior

  • There should be a way to paste as plain text (e.g., Cmd+Shift+V or a context menu option).
  • The paste behavior should be controllable by the application.
  • The beforeinput event should allow intercepting and modifying paste operations.

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: Safari 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.