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

Why is options.events not available on e.g. linkify-string #395

Open
tafelnl opened this issue Jun 29, 2022 · 0 comments
Open

Why is options.events not available on e.g. linkify-string #395

tafelnl opened this issue Jun 29, 2022 · 0 comments
Assignees
Labels
plugin Anything related to the plugin API
Milestone

Comments

@tafelnl
Copy link

tafelnl commented Jun 29, 2022

In the docs it's mentioned that options.events is available on

element, jquery interfaces only

Why is it not available on linkify-string for example. I think I have a valid use-case where this might be needed:

I have plain text input (simple chat messages), of which all but one type of urls should be transformed according to the default settings. For one specific url however, I do want a href set, but I also want to set an event listener, so I can decide for that specfic URL what to do exactly on clicking it. More specific, for example, I want to actually call vue.$router.push() when clicking this a.href element, so I can mimick the behaviour of a <router-link> element.

Is this at all possible with the current API?

@nfrasser nfrasser added this to the 4.1+ milestone Sep 18, 2022
@nfrasser nfrasser self-assigned this Sep 18, 2022
@nfrasser nfrasser added the plugin Anything related to the plugin API label Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin Anything related to the plugin API
Projects
None yet
Development

No branches or pull requests

2 participants