TF-2528 Add integration test for search email with sort by sender nam…e ascending
This commit is contained in:
@@ -955,12 +955,15 @@ class ComposerController extends BaseController
|
||||
}
|
||||
|
||||
Future<String> _getContentInEditor() async {
|
||||
final htmlTextEditor = PlatformInfo.isWeb
|
||||
? _textEditorWeb
|
||||
: await htmlEditorApi?.getText();
|
||||
if (htmlTextEditor?.isNotEmpty == true) {
|
||||
return htmlTextEditor!.removeEditorStartTag();
|
||||
} else {
|
||||
try {
|
||||
final htmlTextEditor = PlatformInfo.isWeb
|
||||
? _textEditorWeb
|
||||
: await htmlEditorApi?.getText();
|
||||
return htmlTextEditor?.isNotEmpty == true
|
||||
? htmlTextEditor!.removeEditorStartTag()
|
||||
: '';
|
||||
} catch (e) {
|
||||
logError('ComposerController::_getContentInEditor:Exception = $e');
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user