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



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]