-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add getSelectedText to amp-bind #11867
Comments
/to @choumx ptal |
@FadySamirSadek Thanks for filing this issue. What's the use case you're looking to support with this? |
I wanted to implement a tooltip feature like what is in medium where users can highlight a piece of text then they will have the option to share it , bookmark it or do anything with it . But currently there is no way to do that in amp and i think this will enhance the user experience so much on a lot of websites. |
One way to do this would be add a new AMP event that fires when highlighted text changes: <p on="highlight:my-tooltip.toggleVisibility">Some highlightable text</p> In this use case, would the tooltip also need the current mouse position? |
This issue hasn't been updated in awhile. @choumx Do you have any updates? |
1 similar comment
This issue hasn't been updated in awhile. @choumx Do you have any updates? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
What's the issue?
There is currently no way to get the text highlighted by the user in anyway currently in amp
The text was updated successfully, but these errors were encountered: