From 7acd8f7d8074ac8f2e112295c77432ba8350b8a5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 28 Feb 2021 14:26:04 +0000 Subject: [PATCH] Spell checking on textareas --- blog.py | 3 ++- webapp_column_left.py | 9 ++++++--- webapp_column_right.py | 12 +++++++----- webapp_create_post.py | 2 +- webapp_moderation.py | 6 +++--- webapp_person_options.py | 2 +- webapp_welcome_profile.py | 3 ++- 7 files changed, 22 insertions(+), 15 deletions(-) diff --git a/blog.py b/blog.py index a8dfcbaa8..9235b8e22 100644 --- a/blog.py +++ b/blog.py @@ -819,7 +819,8 @@ def htmlEditBlog(mediaInstance: bool, translate: {}, editBlogForm += \ ' ' + str(messageBoxHeight) + 'px" spellcheck="true">' + \ + contentStr + '' editBlogForm += dateAndLocation if not mediaInstance: editBlogForm += editBlogImageSection diff --git a/webapp_column_left.py b/webapp_column_left.py index 598b53821..e9894f968 100644 --- a/webapp_column_left.py +++ b/webapp_column_left.py @@ -401,7 +401,8 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, translate['One link per line. Description followed by the link.'] + \ '
' editLinksForm += \ - ' ' editLinksForm += \ '' @@ -424,7 +425,8 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, '
' editLinksForm += \ ' ' + 'style="height:100vh" spellcheck="true">' + \ + aboutStr + '' editLinksForm += \ '' @@ -442,7 +444,8 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, '
' editLinksForm += \ ' ' + 'style="height:100vh" spellcheck="true">' + \ + TOSStr + '' editLinksForm += \ '' diff --git a/webapp_column_right.py b/webapp_column_right.py index 1b4276515..38b955bbb 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -577,7 +577,8 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str, '
' editNewswireForm += \ ' ' + 'style="height:80vh" spellcheck="false">' + \ + newswireStr + '' filterStr = '' filterFilename = \ @@ -592,8 +593,8 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str, editNewswireForm += '
' editNewswireForm += ' \n' + 'name="filteredWordsNewswire" style="height:50vh" ' + \ + 'spellcheck="true">' + filterStr + '\n' hashtagRulesStr = '' hashtagRulesFilename = \ @@ -612,7 +613,7 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str, 'https://gitlab.com/bashrc2/epicyon/-/raw/main/hashtagrules.txt' + \ '">' + translate['See instructions'] + '\n' editNewswireForm += ' \n' editNewswireForm += \ @@ -687,7 +688,8 @@ def htmlEditNewsPost(cssCache: {}, translate: {}, baseDir: str, path: str, newsPostContent = postJsonObject['object']['content'] editNewsPostForm += \ ' ' + 'style="height:600px" spellcheck="true">' + \ + newsPostContent + '' editNewsPostForm += \ '' diff --git a/webapp_create_post.py b/webapp_create_post.py index d43d64ca0..46a5300e5 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -555,7 +555,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {}, dateAndLocation += \ ' \n' + str(messageBoxHeight) + 'px" spellcheck="true">\n' dateAndLocation += '\n' dateAndLocation += '
\n' dateAndLocation += '
\n' infoShown = True @@ -355,7 +355,7 @@ def htmlModerationInfo(cssCache: {}, translate: {}, translate[msgStr1] infoForm += \ ' \n' infoForm += '\n' infoShown = True @@ -370,7 +370,7 @@ def htmlModerationInfo(cssCache: {}, translate: {}, translate['Filtered words'] + '' infoForm += \ ' \n' infoForm += '\n' infoShown = True diff --git a/webapp_person_options.py b/webapp_person_options.py index 8afeac28c..dc9ccbf04 100644 --- a/webapp_person_options.py +++ b/webapp_person_options.py @@ -376,7 +376,7 @@ def htmlPersonOptions(defaultTimeline: str, translate['Submit'] + '
\n' optionsStr += \ ' \n' optionsStr += ' \n' diff --git a/webapp_welcome_profile.py b/webapp_welcome_profile.py index fa78dcfce..7dde5d9ce 100644 --- a/webapp_welcome_profile.py +++ b/webapp_welcome_profile.py @@ -110,7 +110,8 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str, profileForm += '
\n' profileForm += ' \n' + 'style="height:130px" spellcheck="true">' + \ + bioStr + '\n' profileForm += '\n' profileForm += '