lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: when IME input, and try to add a text replacement with breakline, it can't apply property.

Open YuunYang opened this issue 2 years ago • 1 comments

Lexical version:

Steps To Reproduce

https://github.com/user-attachments/assets/7a46f7bd-b488-445c-a801-242193c9524d

  1. setup a text replacements with breakline in apple keyborad setting
  2. select this shortcut, and apply

The current behavior

content didn't replace with the replacements, it keeps the orignal.

The expected behavior

omg should be replace with oh my\ngod

Impact of fix

YuunYang avatar Nov 01 '24 07:11 YuunYang

Tested on current main (macOS Sequoia 15.5, Chrome 137) with a Chinese text replacement containing a line break — the replacement applied correctly.

Confirmed the bug reproduces on the version just before PR #8417 (Firefox). This was fixed by PR #8417, which added workarounds for buggy browser behavior around macOS text replacements.

mayrang avatar Jun 27 '26 06:06 mayrang