From 0354674c108e032bb819973b9b488d05235320c4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 28 Feb 2021 13:52:45 +0000 Subject: [PATCH] Spell checking on text areas --- webapp_profile.py | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index dc01f0c98..4a1dff572 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1260,12 +1260,12 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, if instanceDescription: instanceStr += \ ' ' else: instanceStr += \ ' ' + 'style="height:200px" spellcheck="true">' instanceStr += \ ' ' @@ -1306,7 +1306,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, moderatorsStr += \ ' ' + '..." style="height:200px" spellcheck="false">' + \ + moderators + '' moderatorsStr += '' editors = '' @@ -1320,7 +1321,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, translate['A list of editor nicknames. One per line.'] editorsStr += \ ' ' + 'style="height:200px" spellcheck="false">' + \ + editors + '' editorsStr += '' themes = getThemesList(baseDir) @@ -1369,8 +1371,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, peertubeInstancesStr += url + '\n' peertubeStr += \ ' \n' + 'style="height:200px" spellcheck="false">' + \ + peertubeInstancesStr + '\n' instanceTitle = \ getConfigParam(baseDir, 'instanceTitle') @@ -1429,8 +1431,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, editProfileForm += \ ' \n' editProfileForm += \ - ' \n' + ' \n' alsoKnownAsStr = '' if actorJson.get('alsoKnownAs'): @@ -1509,7 +1511,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, editProfileForm += \ ' \n' + 'style="height:100px" spellcheck="false">' + \ + PGPpubKey + '\n' editProfileForm += '
\n' @@ -1622,7 +1625,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, editProfileForm += '
\n' editProfileForm += ' \n' editProfileForm += \ @@ -1631,7 +1634,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, editProfileForm += '
\n' editProfileForm += \ ' \n' + 'style="height:200px" spellcheck="false">' + \ + switchStr + '\n' editProfileForm += \ '