[evolution] e-editor.js: Block format change doesn't set DIV width in Plain Text mode



commit 28e24e029720d56f0c4c32910ce5213967335957
Author: Milan Crha <mcrha redhat com>
Date:   Wed Apr 29 14:23:20 2020 +0200

    e-editor.js: Block format change doesn't set DIV width in Plain Text mode

 data/webkit/e-editor.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/data/webkit/e-editor.js b/data/webkit/e-editor.js
index 231a1da797..65ef1039d9 100644
--- a/data/webkit/e-editor.js
+++ b/data/webkit/e-editor.js
@@ -1092,6 +1092,8 @@ EvoEditor.SetBlockFormat = function(format)
                                                width = EvoEditor.NORMAL_PARAGRAPH_WIDTH - blockquoteLevel * 
2;
 
                                        EvoEditor.quoteParagraph(newElement, blockquoteLevel, width);
+                               } else if (this.toSet.tagName == "DIV") {
+                                       newElement.setAttribute("style", "width: " + 
EvoEditor.NORMAL_PARAGRAPH_WIDTH + "ch;");
                                }
                        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]