diff --git a/lib/src/editor/widgets/text/text_line.dart b/lib/src/editor/widgets/text/text_line.dart index bf3a0ab8..9251c88d 100644 --- a/lib/src/editor/widgets/text/text_line.dart +++ b/lib/src/editor/widgets/text/text_line.dart @@ -405,7 +405,8 @@ class _TextLineState extends State { } // verify is node is not link because we never need check a link word - if (!isLink) { + // and avoid to show highlighting when is only reading + if (!isLink && !widget.readOnly && !widget.line.style.attributes.containsKey('code-block')) { final service = SpellcheckerServiceProvider.instance; final spellcheckedSpans = service.fetchSpellchecker(textNode.value); if (spellcheckedSpans != null && spellcheckedSpans.isNotEmpty) {