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

[feature] 简历部分内容标注/高亮 #74

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

GrinZero
Copy link

@GrinZero GrinZero commented Jul 19, 2022

前置背景

请查看issue

本PR对应方案一

方案一的简述是通过windpw.getSelection()这个API进行浏览器文本选择及替换。

具体方案思路是:

  1. 通过提炼自定义hook的方式来添加自定义右键菜单,解耦页面

image

  1. 菜单中实现对window.getSelection()选中的文本、节点进行替换

image

  1. 将替换操作整理成effect,加入effect列表,形成可复现的作用链,支持通过command+zcommand+shift+z进行撤销与反撤销

image

@visiky
Copy link
Owner

visiky commented Aug 21, 2022

录制一个 gif 看下效果?

@GrinZero
Copy link
Author

如图
2022-08-21 14 22 49

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

Successfully merging this pull request may close these issues.

None yet

2 participants