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

双击选中整段的是时候,该段文字的字体样式会消失 #3

Open
naoyeye opened this issue Aug 10, 2018 · 1 comment
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@naoyeye
Copy link

naoyeye commented Aug 10, 2018

原文:

image

双击选中一段后:

image

选中后的 html 结构:
image

<new_spans></new_spans> 标签应该被插入到上面的 <p></p> 中。否则<new_span> 标签里的文字无法继承 <p> 标签的样式。

@reycn
Copy link
Owner

reycn commented Aug 10, 2018

第一次用 selection 和 range 还不太了解方法。

@reycn reycn added enhancement New feature or request help wanted Extra attention is needed labels Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants