medium-editor
medium-editor copied to clipboard
Fix CJK IME input caused duplicated first char issue.
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
New tests added? | not needed |
Fixed tickets | #1485 |
License | MIT |
Description
When do with CJK IME, the keyUp event should not trigger formatBlock, which will result wrong text in the input (with the extra first char there). According to https://developer.mozilla.org/en-US/docs/Web/Events/keyup the event can be judged for the IME input composing cases, so made this PR.
--