Comments (9)
谢谢, 看来短时间内 无法解决呀
这个解决方案就是监听compositionstart和compositionend,当start时如果selection是expand状态,则删除节点,可能还需要movepoint的操作,这个就根据需要了
from fantasy-editor.
演示视频: https://files.catbox.moe/rwounm.mp4 (视频链接可能失效)
from fantasy-editor.
这是slate的一个bug,主要是由于中文输入法引起的,老外不存在这个问题,所有这个bug一直没人管
ianstormtaylor/slate#3292
https://www.zhihu.com/question/361228704/answer/937791493
from fantasy-editor.
谢谢, 看来短时间内 无法解决呀
from fantasy-editor.
关注,做了一个月 deaft-js,后发现这个,觉得我要换这个了,可是中文这。。。
from fantasy-editor.
@stfenjobs @crazyair @baijiahei 你们解决问题了吗?我也是搞slate,能否加个联系方式沟通下,我们搞个 slate 的交流群
from fantasy-editor.
有结论吗?你们怎么解决的?
from fantasy-editor.
@Q-Qplus1s 我换了别的编辑器 https://github.com/nhn/tui.editor
from fantasy-editor.
tui.editor 挺一般的,我还提过 PR:nhn/tui.editor#244 (只是说明轻度参与过)
水过一篇博客:2018-8-2 弃用 tui.editor 富文本编辑器的原因
https://1c7.me/2018-8-2-abandon-tui-editor/
仅供参考
from fantasy-editor.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fantasy-editor.