From f797520e562e16e1f5cce3d166b19bb33aeb41c9 Mon Sep 17 00:00:00 2001 From: Aleh Khantsevich Date: Thu, 22 Aug 2024 01:59:09 +0200 Subject: [PATCH] Make Jodit fill all available height of webview --- Wino.Mail/JS/editor.html | 14 ++------------ Wino.Mail/JS/editor.js | 3 +-- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/Wino.Mail/JS/editor.html b/Wino.Mail/JS/editor.html index 8ab08aca..d979daa6 100644 --- a/Wino.Mail/JS/editor.html +++ b/Wino.Mail/JS/editor.html @@ -14,29 +14,19 @@ fill: black; } - #editor { - height: 100%; - } - - - .jodit-container:not(.jodit_inline) { background-color: transparent; border: none; border-radius: initial; } - .jodit-wysiwyg { - min-height: 200px - } - /* Hide taskbar in css. Should not be hidden from configuration, because it's used to sync state with native buttons. */ .jodit-toolbar__box { display: none; } - body { - margin: 8px; + html, body, .jodit-container, .jodit-workplace { + height: 100%; } diff --git a/Wino.Mail/JS/editor.js b/Wino.Mail/JS/editor.js index b26c1f10..fb244cc6 100644 --- a/Wino.Mail/JS/editor.js +++ b/Wino.Mail/JS/editor.js @@ -13,8 +13,7 @@ const joditConfig = { "uploader": { "insertImageAsBase64URI": true }, - "enter": "DIV", - "minHeight": 200 + "enter": "DIV" } // This method should be called first all the time.