diff --git a/lib/src/widgets/html_editor_widget_web.dart b/lib/src/widgets/html_editor_widget_web.dart index 27c90b74..35add3f3 100644 --- a/lib/src/widgets/html_editor_widget_web.dart +++ b/lib/src/widgets/html_editor_widget_web.dart @@ -829,7 +829,7 @@ class _HtmlEditorWidgetWebState extends State { callbacks = """$callbacks \$('#summernote-2').on('summernote.mouseup', function(_, context) { \$('.note-link-popover').off('click').on('click', function(e) { - if (e.target.className == 'note-icon-link' || e.target.className == 'note-btn') { + if (e.target.className == 'note-icon-link' || (e.target.className == 'note-btn' && e.target.getAttribute('aria-label') == 'Edit')) { var linkTag = context.target; const linkTagId = 'id_' + new Date().getTime(); linkTag.id = linkTagId;