diff --git a/core/lib/presentation/utils/html_transformer/html_utils.dart b/core/lib/presentation/utils/html_transformer/html_utils.dart index 7ae5eec1a..4ae3f938c 100644 --- a/core/lib/presentation/utils/html_transformer/html_utils.dart +++ b/core/lib/presentation/utils/html_transformer/html_utils.dart @@ -6,6 +6,7 @@ import 'package:flutter/material.dart'; class HtmlUtils { static const scrollEventJSChannelName = 'ScrollEventListener'; + static const contentSizeChangedEventJSChannelName = 'ContentSizeChangedEventListener'; static const runScriptsHandleScrollEvent = ''' let contentElement = document.getElementsByClassName('tmail-content')[0]; @@ -61,6 +62,16 @@ class HtmlUtils { } '''; + static const scriptsHandleContentSizeChanged = ''' + + '''; + static String customCssStyleHtmlEditor({TextDirection direction = TextDirection.ltr}) { if (PlatformInfo.isWeb) { return '''