After the upgrade, the document changes and the nodesize changes while the Chinese is being input. In this way, the location-dependent decoration needs to be recreated, resulting in the inability to input Chinese.
I can’t promise that I’ll be able to look at this soon, but I can promise that I can’t do anything without a lot more information about the browser, platform, and IME system you’re using, preferably accompanied with a full (but minimal) code example to trigger the issue.
No, updating the view during composition is something the editor does by-design now.
You can make your problem a lot less severe (and make things more efficient to boot) by using the key option to Decoration.widget to avoid redrawing. Still looking into why it is disrupting compositions in the first place, since changes to those decorations shouldn’t really cause the content around them to be redrawn.
Because I need to add decoration at the end of the content, if I only trigger the update when I type Chinese Pinyin, then the position-based decoration at the end of my content also needs to be changed, which will block the input of the Chinese input method