Quill: Is it possible to customize the dialog showed when link button is pushed in toolbar (snow theme) ?

Created on 31 Jan 2019  路  4Comments  路  Source: quilljs/quill

Hi all,

our need is to customize the dialog showed when editing a link in the text editor (we are using the snow theme).

This is the current look and feel:

image

We would like to change the HTML markup of the dialog so that we can enter both the link text and any other attribute of the link (e.g.: the target attribute).

Is it possible to do so ? Should we extend the snow link and rebuild the quill.js source code ? Is there a way to do this customization without recompiling the quill.js source code ?

Most helpful comment

quill should really allow users to choose the target attribute themselves. Almost every other editor has this feature.

All 4 comments

How we can customize the inline editing dialog?

Please ask questions on StackOverflow.

You can extend the tooltip and the theme.
The SnowTooltip extends the BaseTooltip:
https://github.com/quilljs/quill/blob/develop/themes/snow.js#L15

The snow theme creates the tooltip here:
https://github.com/quilljs/quill/blob/develop/themes/snow.js#L95

Note that the same tooltip is used for links, images, videos and formula.

quill should really allow users to choose the target attribute themselves. Almost every other editor has this feature.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lustoykov picture lustoykov  路  3Comments

aletorrado picture aletorrado  路  3Comments

benbro picture benbro  路  3Comments

GildedHonour picture GildedHonour  路  3Comments

emanuelbsilva picture emanuelbsilva  路  3Comments