-
Notifications
You must be signed in to change notification settings - Fork 622
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
[feature] 简历部分内容标注/高亮 #75
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题背景
我希望面试官在看到我的简历时立刻能看到我最想表达的亮点,在这种情况下希望简历可以进行内容标注功能
预期效果
可以对选中的内容进行高亮/标注
预期实现
通过右键弹出菜单的方式实现
具体技术方案
方案一
方案一的简述是通过
windpw.getSelection()
这个API进行浏览器文本选择及替换。我的具体实现方式我提了一个PR,在其中讲了
方案二
由于Selection会涉及多个节点,在选择多节点时表现出强烈的不稳定性,经过整理或许还可以通过如下方案实现。
class=sign
以期望实现.sign:: selection{}
这个方案目前没有正式实验,预估存在问题
The text was updated successfully, but these errors were encountered: