[evolution/wip/mcrha/webkit-jsc-api] e-editor.js: Set signature wrapper wrap width in Plain Text mode
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/mcrha/webkit-jsc-api] e-editor.js: Set signature wrapper wrap width in Plain Text mode
- Date: Tue, 10 Mar 2020 14:18:46 +0000 (UTC)
commit b51f239327198c1782a54da2eb2b06ee7156cb8c
Author: Milan Crha <mcrha redhat com>
Date: Tue Mar 10 15:20:54 2020 +0100
e-editor.js: Set signature wrapper wrap width in Plain Text mode
data/webkit/e-editor.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/data/webkit/e-editor.js b/data/webkit/e-editor.js
index 93674f2614..75b6d332fc 100644
--- a/data/webkit/e-editor.js
+++ b/data/webkit/e-editor.js
@@ -3920,6 +3920,9 @@ EvoEditor.InsertSignature = function(content, isHTML, uid, fromMessage, checkCha
useWrapper.className = "-x-evo-signature-wrapper";
useWrapper.appendChild(sigSpan);
+ if (EvoEditor.mode == EvoEditor.MODE_PLAIN_TEXT)
+ useWrapper.style.width = EvoEditor.NORMAL_PARAGRAPH_WIDTH + "ch";
+
EvoUndoRedo.StartRecord(EvoUndoRedo.RECORD_KIND_CUSTOM,
"InsertSignature::new-changes", document.body, document.body, EvoEditor.CLAIM_CONTENT_FLAG_SAVE_HTML);
try {
if (topSignature) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]