question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

decorate not work well with ime input method

See original GitHub issue

Do you want to request a feature or report a bug?

bug

What’s the current behavior?

Nov-27-2019 16-47-50

The problem which I found in 4x version still exist in 50 version. This time I drived into source code to find the reason.

The main reason is when I input the cursor locate at some decoration for example *123*, after I finish IME input, first of all the text will be placed in the span where *123* in. Then slate update the text tree, rerender, but based on text tree in slate, this decoration won’t need to be update, because it’s range never change. In slate the text is “123这”, after decorate, *123* is still there. So it never rerender, but in the real dom, “这” has been added.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
neko-nekocommented, Aug 13, 2021

Same problem in current version, report here.

Environment

Slate Version: 0.65.3
Operating System: Mac, Windows
Browser: Chrome, Edge, Firefox

Safari seems to be working fine.

0reactions
hdsupermancommented, Dec 30, 2020

same problem (code highlighting example):

v2-bce4bdf71868aea7c49d6f378d0cdf9a_hd

@ianstormtaylor @Jokcy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input Method Editors (IME) - Windows apps | Microsoft Learn
An Input Method Editor (IME) is a software component that enables a user to input text in a language that can't be represented...
Read more >
IME handling guide — Firefox Source Docs documentation
IME state management. IME is a text input system. It means that except when a user wants to input some text, IME shouldn't...
Read more >
Create an input method - Android Developers
Designing an IME UI; Sending text from an IME to an application; Working with IME subtypes. If you haven't worked with IMEs before,...
Read more >
IME is not working properly when line wrapping in Safari - v6
To reproduce, create a vanilla editor, and add EditorView.lineWrapping as the extension. Then enable an input method.
Read more >
Google IME or Redhat Japanese IME candidate window not ...
The issue is Google IME is outside of Java Swing control. The only communication between them is through the Input Method Framework (docs.oracle ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found