TF-105 Change composer library html-editor-enhanced to enough_html_editor support display email content better
This commit is contained in:
@@ -26,4 +26,8 @@ extension HtmlExtension on String {
|
||||
}
|
||||
return htmlString;
|
||||
}
|
||||
|
||||
String addBlockQuoteTag() => addBlockTag(
|
||||
'blockquote',
|
||||
attribute: 'style=\"margin-left:8px;margin-right:8px;padding-left:12px;padding-right:12px;border-left:5px solid #eee;\"');
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
|
||||
String? _htmlData;
|
||||
bool? _wereExternalImagesBlocked;
|
||||
bool _isGenerating = false;
|
||||
double? _webViewContentHeight;
|
||||
double? _webViewContentHeight = 1.0;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -114,7 +114,7 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
|
||||
|
||||
final size = MediaQuery.of(context).size;
|
||||
return SizedBox(
|
||||
height: _webViewContentHeight ?? size.height,
|
||||
height: _webViewContentHeight,
|
||||
width: size.width,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(top: 16),
|
||||
|
||||
Reference in New Issue
Block a user