Forward text selection callback from editor view to editor
This commit is contained in:
@@ -19,6 +19,7 @@ class MobileEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
final OnCreatedEditorAction onCreatedEditorAction;
|
final OnCreatedEditorAction onCreatedEditorAction;
|
||||||
final OnLoadCompletedEditorAction onLoadCompletedEditorAction;
|
final OnLoadCompletedEditorAction onLoadCompletedEditorAction;
|
||||||
final OnEditorContentHeightChanged? onEditorContentHeightChanged;
|
final OnEditorContentHeightChanged? onEditorContentHeightChanged;
|
||||||
|
final OnTextSelectionChanged? onTextSelectionChanged;
|
||||||
|
|
||||||
const MobileEditorView({
|
const MobileEditorView({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -27,6 +28,7 @@ class MobileEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
this.arguments,
|
this.arguments,
|
||||||
this.contentViewState,
|
this.contentViewState,
|
||||||
this.onEditorContentHeightChanged,
|
this.onEditorContentHeightChanged,
|
||||||
|
this.onTextSelectionChanged,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -147,6 +149,7 @@ class MobileEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
onCreatedEditorAction: onCreatedEditorAction,
|
onCreatedEditorAction: onCreatedEditorAction,
|
||||||
onLoadCompletedEditorAction: onLoadCompletedEditorAction,
|
onLoadCompletedEditorAction: onLoadCompletedEditorAction,
|
||||||
onEditorContentHeightChanged: onEditorContentHeightChanged,
|
onEditorContentHeightChanged: onEditorContentHeightChanged,
|
||||||
|
onTextSelectionChanged: onTextSelectionChanged,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,6 +36,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
final OnPasteImageFailureAction? onPasteImageFailureAction;
|
final OnPasteImageFailureAction? onPasteImageFailureAction;
|
||||||
final OnInitialContentLoadComplete? onInitialContentLoadComplete;
|
final OnInitialContentLoadComplete? onInitialContentLoadComplete;
|
||||||
final OnKeyDownEditorAction? onKeyDownEditorAction;
|
final OnKeyDownEditorAction? onKeyDownEditorAction;
|
||||||
|
final OnTextSelectionChanged? onTextSelectionChanged;
|
||||||
|
|
||||||
const WebEditorView({
|
const WebEditorView({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -59,6 +60,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
this.onPasteImageFailureAction,
|
this.onPasteImageFailureAction,
|
||||||
this.onInitialContentLoadComplete,
|
this.onInitialContentLoadComplete,
|
||||||
this.onKeyDownEditorAction,
|
this.onKeyDownEditorAction,
|
||||||
|
this.onTextSelectionChanged,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -91,6 +93,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
onPasteImageFailureAction: onPasteImageFailureAction,
|
onPasteImageFailureAction: onPasteImageFailureAction,
|
||||||
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
||||||
onKeyDownEditorAction: onKeyDownEditorAction,
|
onKeyDownEditorAction: onKeyDownEditorAction,
|
||||||
|
onTextSelectionChanged: onTextSelectionChanged,
|
||||||
);
|
);
|
||||||
case EmailActionType.editDraft:
|
case EmailActionType.editDraft:
|
||||||
case EmailActionType.editSendingEmail:
|
case EmailActionType.editSendingEmail:
|
||||||
@@ -123,6 +126,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
onPasteImageFailureAction: onPasteImageFailureAction,
|
onPasteImageFailureAction: onPasteImageFailureAction,
|
||||||
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
||||||
onKeyDownEditorAction: onKeyDownEditorAction,
|
onKeyDownEditorAction: onKeyDownEditorAction,
|
||||||
|
onTextSelectionChanged: onTextSelectionChanged,
|
||||||
),
|
),
|
||||||
(success) {
|
(success) {
|
||||||
if (success is GetEmailContentLoading) {
|
if (success is GetEmailContentLoading) {
|
||||||
@@ -157,6 +161,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
onPasteImageFailureAction: onPasteImageFailureAction,
|
onPasteImageFailureAction: onPasteImageFailureAction,
|
||||||
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
||||||
onKeyDownEditorAction: onKeyDownEditorAction,
|
onKeyDownEditorAction: onKeyDownEditorAction,
|
||||||
|
onTextSelectionChanged: onTextSelectionChanged,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -197,6 +202,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
onPasteImageFailureAction: onPasteImageFailureAction,
|
onPasteImageFailureAction: onPasteImageFailureAction,
|
||||||
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
||||||
onKeyDownEditorAction: onKeyDownEditorAction,
|
onKeyDownEditorAction: onKeyDownEditorAction,
|
||||||
|
onTextSelectionChanged: onTextSelectionChanged,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
(success) {
|
(success) {
|
||||||
@@ -232,6 +238,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
onPasteImageFailureAction: onPasteImageFailureAction,
|
onPasteImageFailureAction: onPasteImageFailureAction,
|
||||||
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
||||||
onKeyDownEditorAction: onKeyDownEditorAction,
|
onKeyDownEditorAction: onKeyDownEditorAction,
|
||||||
|
onTextSelectionChanged: onTextSelectionChanged,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -257,6 +264,7 @@ class WebEditorView extends StatelessWidget with EditorViewMixin {
|
|||||||
onPasteImageFailureAction: onPasteImageFailureAction,
|
onPasteImageFailureAction: onPasteImageFailureAction,
|
||||||
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
onInitialContentLoadComplete: onInitialContentLoadComplete,
|
||||||
onKeyDownEditorAction: onKeyDownEditorAction,
|
onKeyDownEditorAction: onKeyDownEditorAction,
|
||||||
|
onTextSelectionChanged: onTextSelectionChanged,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user