@@ -86,6 +86,7 @@ class QuillEditorConfig {
8686 this .readOnlyMouseCursor = SystemMouseCursors .text,
8787 this .onPerformAction,
8888 @experimental this .customLeadingBlockBuilder,
89+ this .useSystemContextMenuItems = false ,
8990 });
9091
9192 @experimental
@@ -471,6 +472,11 @@ class QuillEditorConfig {
471472 /// Called when a text input action is performed.
472473 final void Function (TextInputAction action)? onPerformAction;
473474
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+
474480 // IMPORTANT For project authors: The copyWith()
475481 // should be manually updated each time we add or remove a property
476482
@@ -531,6 +537,7 @@ class QuillEditorConfig {
531537 void Function ()? onScribbleActivated,
532538 EdgeInsets ? scribbleAreaInsets,
533539 void Function (TextInputAction action)? onPerformAction,
540+ bool ? useSystemContextMenuItems,
534541 }) {
535542 return QuillEditorConfig (
536543 customLeadingBlockBuilder:
@@ -600,6 +607,7 @@ class QuillEditorConfig {
600607 onScribbleActivated: onScribbleActivated ?? this .onScribbleActivated,
601608 scribbleAreaInsets: scribbleAreaInsets ?? this .scribbleAreaInsets,
602609 onPerformAction: onPerformAction ?? this .onPerformAction,
610+ useSystemContextMenuItems: useSystemContextMenuItems ?? this .useSystemContextMenuItems,
603611 );
604612 }
605613}
0 commit comments