@@ -86,6 +86,7 @@ class QuillEditorConfig {
86
86
this .readOnlyMouseCursor = SystemMouseCursors .text,
87
87
this .onPerformAction,
88
88
@experimental this .customLeadingBlockBuilder,
89
+ this .useSystemContextMenuItems = false ,
89
90
});
90
91
91
92
@experimental
@@ -471,6 +472,11 @@ class QuillEditorConfig {
471
472
/// Called when a text input action is performed.
472
473
final void Function (TextInputAction action)? onPerformAction;
473
474
475
+ /// Show native context menu items on iOS.
476
+ /// To use the default context menu items on iOS, set this to true.
477
+ /// Use system context menu can unlock the secure paste feature for iOS
478
+ final bool useSystemContextMenuItems;
479
+
474
480
// IMPORTANT For project authors: The copyWith()
475
481
// should be manually updated each time we add or remove a property
476
482
@@ -531,6 +537,7 @@ class QuillEditorConfig {
531
537
void Function ()? onScribbleActivated,
532
538
EdgeInsets ? scribbleAreaInsets,
533
539
void Function (TextInputAction action)? onPerformAction,
540
+ bool ? useSystemContextMenuItems,
534
541
}) {
535
542
return QuillEditorConfig (
536
543
customLeadingBlockBuilder:
@@ -600,6 +607,7 @@ class QuillEditorConfig {
600
607
onScribbleActivated: onScribbleActivated ?? this .onScribbleActivated,
601
608
scribbleAreaInsets: scribbleAreaInsets ?? this .scribbleAreaInsets,
602
609
onPerformAction: onPerformAction ?? this .onPerformAction,
610
+ useSystemContextMenuItems: useSystemContextMenuItems ?? this .useSystemContextMenuItems,
603
611
);
604
612
}
605
613
}
0 commit comments