diff --git a/lib/src/widgets/quill/quill_controller.dart b/lib/src/widgets/quill/quill_controller.dart index 6458bc0a..7f95a6cf 100644 --- a/lib/src/widgets/quill/quill_controller.dart +++ b/lib/src/widgets/quill/quill_controller.dart @@ -303,7 +303,9 @@ class QuillController extends ChangeNotifier { var shouldRetainDelta = toggledStyle.isNotEmpty && delta.isNotEmpty && delta.length <= 2 && - delta.last.isInsert; + delta.last.isInsert && + // pasted text should not use toggledStyle + (data is! String || data.length < 2); if (shouldRetainDelta && toggledStyle.isNotEmpty && delta.length == 2 &&