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

Add targetElement argument #446

Merged

Conversation

bendemboski
Copy link
Contributor

Add a targetElement argument that's similar to targetId, but can specify an HTML element for cases where the target element doesn't have an ID, e.g. HTML rendered by a third-party library.

My use case for this is attaching a popover to the currently-selected paragraph in content managed by a CKEditor instance to present options for acting on the paragraph, e.g. block formatting such as alignment.

Copy link
Collaborator

@maxfierke maxfierke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bendemboski This looks great! CI should be fixed if you rebase off master (looks like Node 12 fell out of "maintained node versions" in browserlist)

Add a `targetElement` argument that's similar to `targetId`, but can specify an HTML element for cases where the target element doesn't have an ID, e.g. HTML rendered by a third-party library.
Copy link
Collaborator

@maxfierke maxfierke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:octocat: !

@bendemboski
Copy link
Contributor Author

Sweet, thanks for the quick approval!

@maxfierke maxfierke merged commit e2eb53b into sir-dunxalot:master Jun 25, 2022
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.

2 participants