|
|
|
@ -61,6 +61,7 @@ class QuillEditorConfigurations extends Equatable { |
|
|
|
|
this.floatingCursorDisabled = false, |
|
|
|
|
this.textSelectionControls, |
|
|
|
|
this.onImagePaste, |
|
|
|
|
this.onGifPaste, |
|
|
|
|
this.customShortcuts, |
|
|
|
|
this.customActions, |
|
|
|
|
this.detectWordBoundary = true, |
|
|
|
@ -282,6 +283,11 @@ class QuillEditorConfigurations extends Equatable { |
|
|
|
|
/// Returns the url of the image if the image should be inserted. |
|
|
|
|
final Future<String?> Function(Uint8List imageBytes)? onImagePaste; |
|
|
|
|
|
|
|
|
|
/// Callback when the user pastes the given gif. |
|
|
|
|
/// |
|
|
|
|
/// Returns the url of the gif if the gif should be inserted. |
|
|
|
|
final Future<String?> Function(Uint8List imageBytes)? onGifPaste; |
|
|
|
|
|
|
|
|
|
/// Contains user-defined shortcuts map. |
|
|
|
|
/// |
|
|
|
|
/// [https://docs.flutter.dev/development/ui/advanced/actions-and-shortcuts#shortcuts] |
|
|
|
@ -391,6 +397,7 @@ class QuillEditorConfigurations extends Equatable { |
|
|
|
|
bool? floatingCursorDisabled, |
|
|
|
|
TextSelectionControls? textSelectionControls, |
|
|
|
|
Future<String?> Function(Uint8List imageBytes)? onImagePaste, |
|
|
|
|
Future<String?> Function(Uint8List imageBytes)? onGifPaste, |
|
|
|
|
Map<ShortcutActivator, Intent>? customShortcuts, |
|
|
|
|
Map<Type, Action<Intent>>? customActions, |
|
|
|
|
bool? detectWordBoundary, |
|
|
|
@ -449,6 +456,7 @@ class QuillEditorConfigurations extends Equatable { |
|
|
|
|
textSelectionControls: |
|
|
|
|
textSelectionControls ?? this.textSelectionControls, |
|
|
|
|
onImagePaste: onImagePaste ?? this.onImagePaste, |
|
|
|
|
onGifPaste: onGifPaste ?? this.onGifPaste, |
|
|
|
|
customShortcuts: customShortcuts ?? this.customShortcuts, |
|
|
|
|
customActions: customActions ?? this.customActions, |
|
|
|
|
detectWordBoundary: detectWordBoundary ?? this.detectWordBoundary, |
|
|
|
|