draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

The Chinese input overwrites the previous input

Open clydee-geng opened this issue 3 years ago • 5 comments

2022-02-14 18 01 46

clydee-geng avatar Feb 14 '22 10:02 clydee-geng

I trid the draft v0.10.5, it doesn't have this problem

clydee-geng avatar Feb 15 '22 09:02 clydee-geng

这些库对中文支持太不好了,也不只是中文,其他的组合语言都是这样。我之前看 slate 这个库也有问题,但是我刚看了看 slate 库好像改好了;这个 draft 两年没发版本了,真离谱。

jaceyi avatar Feb 18 '22 06:02 jaceyi

你的quote的换行是用的not-handled还是用insertNewSoftLine加进去的? onChange的代码能贴一下吗?

xu1718191411 avatar Apr 21 '22 03:04 xu1718191411

用class组件不会覆盖,function组件会覆盖

972716557 avatar Jun 02 '22 05:06 972716557

中文输入后会导致其他atomic的组件re-render,有没有解决方案

zhangyanling77 avatar Jun 08 '22 05:06 zhangyanling77