Scenario

Pasting rich text inserts unwanted formatting

Pasting rich text inserts unwanted formatting

Scenario ID
scenario-paste-plain-text

Scenario flow

Visual view of how this scenario connects to its concrete cases and environments. Nodes can be dragged and clicked.

React Flow mini map

Variants

Each row is a concrete case for this scenario, with a dedicated document and playground.

Case OS Device Browser Keyboard Status
ce-0019-paste-plain-text-only macOS Ubuntu 22.04 Desktop or Laptop Any Safari 120.0 US draft
ce-0572 Linux Ubuntu 22.04 Desktop Any Chrome 121.0 US QWERTY confirmed

Browser compatibility

This matrix shows which browser and OS combinations have documented cases for this scenario. Click on a cell to view the specific case.

Browser Linux macOS
Chrome
ce-0572
121.0
Safari
Confirmed
Draft
No case documented

Cases

This scenario affects multiple languages. Cases are grouped by language/input method below.

US

1 case

US QWERTY

1 case

Related Scenarios

Other scenarios that share similar tags or category.

Tags: paste, formatting

List formatting is lost when editing list items

When editing text within list items, formatting such as bold, italic, or links may be lost or behave unexpectedly. The list structure itself may also be lost when certain operations are performed, such as pasting content or applying formatting.

3 cases
Tags: formatting

Selection mismatch between beforeinput and input events

The selection (window.getSelection()) in beforeinput events can differ from the selection in corresponding input events. This mismatch can occur during IME composition, text prediction, or when typing adjacent to formatted elements like links. The selection in beforeinput may include adjacent formatted text, while input selection reflects the final cursor position.

1 case
Tags: safari

beforeinput event is not supported in Safari

The beforeinput event, which is crucial for intercepting and modifying input before it's committed to the DOM, is not supported in Safari. This makes it difficult to implement custom input handling that works across all browsers.

1 case

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.