stylo icon indicating copy to clipboard operation
stylo copied to clipboard

how to customize link functionality?

Open faizananwerali opened this issue 1 year ago • 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?

faizananwerali avatar Dec 15 '23 21:12 faizananwerali

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.

peterpeterparker avatar Dec 16 '23 08:12 peterpeterparker

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.

faizananwerali avatar Dec 16 '23 08:12 faizananwerali

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.

peterpeterparker avatar Dec 16 '23 09:12 peterpeterparker

Any alternative library/package you recommend that is as close to this project as possible?

On Sat, 16 Dec 2023, 2:12 pm David Dal Busco, @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/papyrs/stylo/issues/124#issuecomment-1858769729, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA2PJTWHLFDVNN3MM4HAULYJVQZVAVCNFSM6AAAAABAXBA6HKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYG43DSNZSHE . You are receiving this because you authored the thread.Message ID: @.***>

faizananwerali avatar Dec 16 '23 11:12 faizananwerali

You can try https://tiptap.dev/

peterpeterparker avatar Dec 16 '23 11:12 peterpeterparker

Well, tiptap is the full editor and I am not looking for an editor. All I need is to show menu buttons on text if contenteditable is true. Like this library. It is perfect. Too bad that it is going to be depreciated.

On Sat, 16 Dec 2023, 4:10 pm David Dal Busco, @.***> wrote:

You can try https://tiptap.dev/

— Reply to this email directly, view it on GitHub https://github.com/papyrs/stylo/issues/124#issuecomment-1858791738, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA2PJQBLGHYYBUPLKKHGL3YJV6UBAVCNFSM6AAAAABAXBA6HKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYG44TCNZTHA . You are receiving this because you authored the thread.Message ID: @.***>

faizananwerali avatar Dec 16 '23 11:12 faizananwerali