Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何添加富文本删除监听事件 #6

Open
HeYongRui opened this issue Feb 26, 2019 · 2 comments
Open

如何添加富文本删除监听事件 #6

HeYongRui opened this issue Feb 26, 2019 · 2 comments

Comments

@HeYongRui
Copy link

我想添加富文本删除监听事件,在onKey里,但是测试发现只有setSelection时会回调,删除选区时没有回调,请问有什么办法吗?急!!

@aishang5wpj
Copy link
Owner

删除富文本的动作都在selectChanged()里面写了,有好几个if分支,你在if分支里面删除是富文本的时候添加一个回调就好了,需要改一下源码

@HeYongRui
Copy link
Author

删除富文本的动作都在selectChanged()里面写了,有好几个if分支,你在if分支里面删除是富文本的时候添加一个回调就好了,需要改一下源码

好的,我试一下,多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants