peterpeterparker/stylo

how to customize link functionality?

faizananwerali opened this issue · 6 comments

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?

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.

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.

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.