[evolution/gnome-3-38] I#1158 - Composer: Disable spellcheck of quoted text
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-38] I#1158 - Composer: Disable spellcheck of quoted text
- Date: Thu, 15 Oct 2020 13:00:15 +0000 (UTC)
commit 4d0cadfd95cc1a3221da15825102f01d51a68883
Author: Milan Crha <mcrha redhat com>
Date: Thu Oct 15 14:59:30 2020 +0200
I#1158 - Composer: Disable spellcheck of quoted text
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1158
data/webkit/e-editor.js | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/data/webkit/e-editor.js b/data/webkit/e-editor.js
index 898a309a18..0bdffb07c4 100644
--- a/data/webkit/e-editor.js
+++ b/data/webkit/e-editor.js
@@ -2466,6 +2466,7 @@ EvoEditor.convertHtmlToSend = function()
for (ii = 0; ii < elems.length; ii++) {
elems[ii].setAttribute("style", EvoEditor.BLOCKQUOTE_STYLE);
+ elems[ii].removeAttribute("spellcheck");
}
}
@@ -2476,6 +2477,7 @@ EvoEditor.convertHtmlToSend = function()
for (ii = 0; ii < elems.length; ii++) {
elems[ii].removeAttribute("style");
+ elems[ii].setAttribute("spellcheck", "false");
}
}
@@ -5013,6 +5015,7 @@ EvoEditor.InsertContent = function(text, isHTML, quote)
if (quote) {
content.setAttribute("type", "cite");
+ content.setAttribute("spellcheck", "false");
}
if (isHTML) {
@@ -5455,6 +5458,7 @@ EvoEditor.processLoadedContent = function()
if (didCite) {
didCite = document.createElement("BLOCKQUOTE");
didCite.setAttribute("type", "cite");
+ didCite.setAttribute("spellcheck", "false");
while (document.body.firstChild) {
didCite.appendChild(document.body.firstChild);
@@ -5564,6 +5568,7 @@ EvoEditor.processLoadedContent = function()
blockquoteNode.removeAttribute("class");
blockquoteNode.removeAttribute("style");
blockquoteNode.setAttribute("type", "cite");
+ blockquoteNode.setAttribute("spellcheck", "false");
}
if (EvoEditor.mode == EvoEditor.MODE_PLAIN_TEXT) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]