lexical
lexical copied to clipboard
Bug: when IME input, and try to add a text replacement with breakline, it can't apply property.
Lexical version:
Steps To Reproduce
https://github.com/user-attachments/assets/7a46f7bd-b488-445c-a801-242193c9524d
- setup a text replacements with breakline in apple keyborad setting
- 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
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.