TF-3918 Fix line-height is auto changed when copy/paste or drag/drop from odt file
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -139,6 +139,8 @@ class _WebEditorState extends State<WebEditorWidget> {
|
||||
),
|
||||
spellCheck: true,
|
||||
disableDragAndDrop: true,
|
||||
normalizeHtmlTextWhenDropping: true,
|
||||
normalizeHtmlTextWhenPasting: true,
|
||||
webInitialScripts: UnmodifiableListView([
|
||||
WebScript(
|
||||
name: HtmlUtils.lineHeight100Percent.name,
|
||||
|
||||
+2
@@ -152,6 +152,8 @@ class IdentitySignatureInputFieldWidget extends StatelessWidget {
|
||||
initialText: initContent.isEmpty ? null : initContent,
|
||||
disableDragAndDrop: true,
|
||||
spellCheck: true,
|
||||
normalizeHtmlTextWhenDropping: true,
|
||||
normalizeHtmlTextWhenPasting: true,
|
||||
customBodyCssStyle: HtmlUtils.customInlineBodyCssStyleHtmlEditor(
|
||||
direction: AppUtils.getCurrentDirection(context),
|
||||
),
|
||||
|
||||
@@ -509,6 +509,8 @@ class VacationView extends GetWidget<VacationController> {
|
||||
cacheHTMLAssetOffline: true,
|
||||
initialText: controller.vacationMessageHtmlText,
|
||||
spellCheck: true,
|
||||
normalizeHtmlTextWhenDropping: true,
|
||||
normalizeHtmlTextWhenPasting: true,
|
||||
customBodyCssStyle: HtmlUtils.customInlineBodyCssStyleHtmlEditor(
|
||||
direction: AppUtils.getCurrentDirection(context),
|
||||
horizontalPadding: 0,
|
||||
|
||||
Reference in New Issue
Block a user