Customize link tooltip for Quill editor

Created by Qiwei on 6/23/2022 · Edited on 1/9/2024

Quill editor is really difficult to customize, although it allows all kinds of customization using code and provides some APIs, it's a nightmare for developer. For those who need a rich text editor in their app, please consider other libraries. I don't know which ones are better, maybe slate or draft.js, but not Quill, documentation is not dev friendly, community is not very big, so really hard to find common solutions.

Custom tooltip inputs

Anyway, I implemented a very basic custom tooltip for links, so users can edit link's text together with link's href, just like the use case in slack and google doc. (Actually the default implementation in quill.js is quite easy to use already, but there are always users who don't understand what is an url address 😭)

Here is the code:

With help from these places: