[evolution/wip/mcrha/webkit-jsc-api: 291/292] e-editor.js: Set signature wrapper wrap width in Plain Text mode



commit dfc7f49235af93efe221f76c3aeff515db385b99
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]