TF-3933 Avoid load font from google

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-08-01 18:10:56 +07:00
committed by Dat H. Pham
parent 1c04825367
commit 801b08bc90
31 changed files with 352 additions and 277 deletions
@@ -121,11 +121,14 @@ class _WebEditorState extends State<WebEditorWidget> {
darkMode: false,
cacheHTMLAssetOffline: true,
initialText: widget.content,
customBodyCssStyle: HtmlUtils.customCssStyleHtmlEditor(
customBodyCssStyle: HtmlUtils.customInlineBodyCssStyleHtmlEditor(
direction: widget.direction,
horizontalPadding: widget.horizontalPadding,
),
customInternalCSS: HtmlTemplate.customInternalStyleCSS,
customInternalCSS: HtmlTemplate.webCustomInternalStyleCSS(
useDefaultFontStyle: true,
customScrollbar: true,
),
spellCheck: true,
disableDragAndDrop: true,
webInitialScripts: UnmodifiableListView([