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

RichEditor焦点问题? #12

Open
ssj2020 opened this issue Apr 10, 2021 · 2 comments
Open

RichEditor焦点问题? #12

ssj2020 opened this issue Apr 10, 2021 · 2 comments

Comments

@ssj2020
Copy link

ssj2020 commented Apr 10, 2021

大佬,请问当点击设置加粗,下划线等后,如果不主动点击RichEditor,就可以实现,但是,如果点击加粗后,收缩键盘然后手指主动去点击RichEditor后,RichEditor就会有概率没有那个加粗的事件,和RichEditor获取到焦点有关系吗?

@fg2q1q3q
Copy link

fg2q1q3q commented Apr 22, 2021

同样由此疑问,一旦重新获取焦点,部分属性概率性丢失

经过排查发现,是因为js文件中针对文字颜色、高亮颜色、超链接、插入Html等功能会调用restorerange重置属性,导致部分已选属性消失,修改js即可

@ssj2020
Copy link
Author

ssj2020 commented May 7, 2021

同样由此疑问,一旦重新获取焦点,部分属性概率性丢失

经过排查发现,是因为js文件中针对文字颜色、高亮颜色、超链接、插入Html等功能会调用restorerange重置属性,导致部分已选属性消失,修改js即可

你好,请问怎么修改,能否贴出代码,对js不了解,谢谢

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