diff --git a/lib/widgets/editor.dart b/lib/widgets/editor.dart index 4fbd5a6b..c2649383 100644 --- a/lib/widgets/editor.dart +++ b/lib/widgets/editor.dart @@ -344,7 +344,7 @@ class _QuillEditorSelectionGestureDetectorBuilder String link = segment.style.attributes[Attribute.link.key].value; if (getEditor().widget.readOnly && link != null && - urlRegExp.firstMatch(link) != null) { + urlRegExp.firstMatch(link.trim()) != null) { launchUrl(link); } }