TF-4142 Close link overlay when click email content view

This commit is contained in:
dab246
2025-11-10 12:39:00 +07:00
committed by Dat H. Pham
parent 249520b711
commit fa0ba5d689
8 changed files with 70 additions and 1 deletions
@@ -325,6 +325,12 @@ class RichTextWebController extends GetxController {
bool get isFormattingOptionsEnabled => formattingOptionsState.value == FormattingOptionsState.enabled;
void openInsertLink() {
FocusManager.instance.primaryFocus?.unfocus();
editorController.setFocus();
editorController.openInsertLinkDialog();
}
@override
void onClose() {
menuParagraphController.dispose();
@@ -9,7 +9,7 @@ import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
extension HandleInsertLinkComposerExtension on ComposerController {
void openInsertLink() {
richTextWebController?.editorController.openInsertLinkDialog();
richTextWebController?.openInsertLink();
}
LinkOverlayOptions createLinkOverlayOptions(BuildContext context) {