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

how to customize link functionality? #124

Open
faizananwerali opened this issue Dec 15, 2023 · 6 comments
Open

how to customize link functionality? #124

faizananwerali opened this issue Dec 15, 2023 · 6 comments
Labels
question Further information is requested

Comments

@faizananwerali
Copy link

I have totally different modal already developed in UI to customize link, like uploading file, and custom links.

Now what I need to do when use click 'add a link' button it should open my modal with link if already present. then the my modal do the work and return link, this link now should apply to html element.

so what should be normal procedure I need to follow?

@peterpeterparker peterpeterparker added the question Further information is requested label Dec 16, 2023
@peterpeterparker
Copy link
Owner

If I understand your feature requirement, I don't think there is a way. You can add define plugins and use those to trigger modals - for example what I did in papyrs repo - but, there is no option to "hijack" the add/delete link action.

@faizananwerali
Copy link
Author

faizananwerali commented Dec 16, 2023

Thank you for the suggestion. I believe that providing an option to disable default menus and override them would be highly beneficial. Due to the modular nature of this project, I think there can be a more efficient solution to this issue than creating a separate plugin and hiding the current link button using CSS.

@peterpeterparker
Copy link
Owner

To speak frankly, this project isn't active anymore. Sometimes I even think I should mark it as deprecated but, it is still used in Papyrs which is not yet full deprecated yet but, soon. Therefore, I most probably won't develop anything new in a near future. Happy to welcome PR if there is a wich of features of course.

@faizananwerali
Copy link
Author

faizananwerali commented Dec 16, 2023 via email

@peterpeterparker
Copy link
Owner

You can try https://tiptap.dev/

@faizananwerali
Copy link
Author

faizananwerali commented Dec 16, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants