am-editor icon indicating copy to clipboard operation
am-editor copied to clipboard

关于中文输入时未选中文字直接点击编辑器外部,getValue拿不到值的问题

Open Stars0518 opened this issue 3 years ago • 1 comments

image 如图所示,在首次输入的过程中没有中文在内时,点击编辑器外部,engine.isEmpty()为true,并且engine.getValue()中也没有输入的文案。这种需要怎么解决? 我想尝试用Input,但不知道如何使用。 image

Stars0518 avatar Jul 29 '22 10:07 Stars0518

在外部节点的mousedown 里面 e.preventDefault 可以阻止吧。因为点外面失焦了,本身组合输入没有完成就会取消掉输入了,输入法自身行为

big-camel avatar Jul 29 '22 10:07 big-camel