Skip to content

Commit bdbe551

Browse files
authored
revert: disable rich text paste feature on web as a workaround (singerdmx#2221)
* revert: disable rich text paste feature on web as a workaround to issue singerdmx#2220
1 parent e51add5 commit bdbe551

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/controller/web/quill_controller_web_real.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'dart:async' show StreamSubscription;
55
import 'package:web/web.dart';
66

77
import '../quill_controller.dart';
8+
// ignore: unused_import
89
import '../quill_controller_rich_paste.dart';
910

1011
/// Paste event for the web.
@@ -23,7 +24,9 @@ extension QuillControllerWeb on QuillController {
2324
if (html == null) {
2425
return;
2526
}
26-
pasteHTML(html: html);
27+
// TODO: Temporarily disable the rich text pasting feature as a workaround
28+
// due to issue https://github.com/singerdmx/flutter-quill/issues/2220
29+
// pasteHTML(html: html);
2730
});
2831
}
2932

0 commit comments

Comments
 (0)