toolbar: {
container: ['bold', 'italic', { list: 'bullet' }, 'link'],
handlers: {
link: () => {
const editor = reactQuillRef.getEditor();
const unprivilegedEditor = reactQuillRef.makeUnprivilegedEditor(
editor,
);
const range = unprivilegedEditor.getSelection();
if (range == null || range.length == 0) {
alert('nothing is selected');
return;
}
const tooltip = editor.theme.tooltip;
tooltip.edit('link');
},
},
},
As soon as I click on the Link button the link editing tooltip appears for a brief moment and then closes itself immediately. It all works fine if I remove the handler altogether. What am I doing wrong here?