@ -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 &&