mirror of https://gitlab.com/bashrc2/epicyon
Spell checking on textareas
parent
0354674c10
commit
7acd8f7d80
3
blog.py
3
blog.py
|
@ -819,7 +819,8 @@ def htmlEditBlog(mediaInstance: bool, translate: {},
|
|||
|
||||
editBlogForm += \
|
||||
' <textarea id="message" name="message" style="height:' + \
|
||||
str(messageBoxHeight) + 'px">' + contentStr + '</textarea>'
|
||||
str(messageBoxHeight) + 'px" spellcheck="true">' + \
|
||||
contentStr + '</textarea>'
|
||||
editBlogForm += dateAndLocation
|
||||
if not mediaInstance:
|
||||
editBlogForm += editBlogImageSection
|
||||
|
|
|
@ -401,7 +401,8 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
translate['One link per line. Description followed by the link.'] + \
|
||||
'<br>'
|
||||
editLinksForm += \
|
||||
' <textarea id="message" name="editedLinks" style="height:80vh">' + \
|
||||
' <textarea id="message" name="editedLinks" ' + \
|
||||
'style="height:80vh" spellcheck="false">' + \
|
||||
linksStr + '</textarea>'
|
||||
editLinksForm += \
|
||||
'</div>'
|
||||
|
@ -424,7 +425,8 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
'<br>'
|
||||
editLinksForm += \
|
||||
' <textarea id="message" name="editedAbout" ' + \
|
||||
'style="height:100vh">' + aboutStr + '</textarea>'
|
||||
'style="height:100vh" spellcheck="true">' + \
|
||||
aboutStr + '</textarea>'
|
||||
editLinksForm += \
|
||||
'</div>'
|
||||
|
||||
|
@ -442,7 +444,8 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
'<br>'
|
||||
editLinksForm += \
|
||||
' <textarea id="message" name="editedTOS" ' + \
|
||||
'style="height:100vh">' + TOSStr + '</textarea>'
|
||||
'style="height:100vh" spellcheck="true">' + \
|
||||
TOSStr + '</textarea>'
|
||||
editLinksForm += \
|
||||
'</div>'
|
||||
|
||||
|
|
|
@ -577,7 +577,8 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
'<br>'
|
||||
editNewswireForm += \
|
||||
' <textarea id="message" name="editedNewswire" ' + \
|
||||
'style="height:80vh">' + newswireStr + '</textarea>'
|
||||
'style="height:80vh" spellcheck="false">' + \
|
||||
newswireStr + '</textarea>'
|
||||
|
||||
filterStr = ''
|
||||
filterFilename = \
|
||||
|
@ -592,8 +593,8 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
editNewswireForm += ' <br><label class="labels">' + \
|
||||
translate['One per line'] + '</label>'
|
||||
editNewswireForm += ' <textarea id="message" ' + \
|
||||
'name="filteredWordsNewswire" style="height:50vh">' + \
|
||||
filterStr + '</textarea>\n'
|
||||
'name="filteredWordsNewswire" style="height:50vh" ' + \
|
||||
'spellcheck="true">' + filterStr + '</textarea>\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'] + '</a>\n'
|
||||
editNewswireForm += ' <textarea id="message" ' + \
|
||||
'name="hashtagRulesList" style="height:80vh">' + \
|
||||
'name="hashtagRulesList" style="height:80vh" spellcheck="false">' + \
|
||||
hashtagRulesStr + '</textarea>\n'
|
||||
|
||||
editNewswireForm += \
|
||||
|
@ -687,7 +688,8 @@ def htmlEditNewsPost(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
newsPostContent = postJsonObject['object']['content']
|
||||
editNewsPostForm += \
|
||||
' <textarea id="message" name="editedNewsPost" ' + \
|
||||
'style="height:600px">' + newsPostContent + '</textarea>'
|
||||
'style="height:600px" spellcheck="true">' + \
|
||||
newsPostContent + '</textarea>'
|
||||
|
||||
editNewsPostForm += \
|
||||
'</div>'
|
||||
|
|
|
@ -555,7 +555,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
|||
dateAndLocation += \
|
||||
' <textarea id="message" ' + \
|
||||
'name="repliesModerationOption" style="height:' + \
|
||||
str(messageBoxHeight) + 'px"></textarea>\n'
|
||||
str(messageBoxHeight) + 'px" spellcheck="true"></textarea>\n'
|
||||
dateAndLocation += '</div>\n'
|
||||
dateAndLocation += '<div class="container">\n'
|
||||
dateAndLocation += '<label class="labels">' + \
|
||||
|
|
|
@ -337,7 +337,7 @@ def htmlModerationInfo(cssCache: {}, translate: {},
|
|||
translate['These are currently suspended']
|
||||
infoForm += \
|
||||
' <textarea id="message" ' + \
|
||||
'name="suspended" style="height:200px">' + \
|
||||
'name="suspended" style="height:200px" spellcheck="false">' + \
|
||||
suspendedStr + '</textarea>\n'
|
||||
infoForm += '</div>\n'
|
||||
infoShown = True
|
||||
|
@ -355,7 +355,7 @@ def htmlModerationInfo(cssCache: {}, translate: {},
|
|||
translate[msgStr1]
|
||||
infoForm += \
|
||||
' <textarea id="message" ' + \
|
||||
'name="blocked" style="height:700px">' + \
|
||||
'name="blocked" style="height:700px" spellcheck="false">' + \
|
||||
blockedStr + '</textarea>\n'
|
||||
infoForm += '</div>\n'
|
||||
infoShown = True
|
||||
|
@ -370,7 +370,7 @@ def htmlModerationInfo(cssCache: {}, translate: {},
|
|||
translate['Filtered words'] + '</b>'
|
||||
infoForm += \
|
||||
' <textarea id="message" ' + \
|
||||
'name="filtered" style="height:700px">' + \
|
||||
'name="filtered" style="height:700px" spellcheck="true">' + \
|
||||
filteredStr + '</textarea>\n'
|
||||
infoForm += '</div>\n'
|
||||
infoShown = True
|
||||
|
|
|
@ -376,7 +376,7 @@ def htmlPersonOptions(defaultTimeline: str,
|
|||
translate['Submit'] + '</button><br>\n'
|
||||
optionsStr += \
|
||||
' <textarea id="message" ' + \
|
||||
'name="optionnotes" style="height:400px">' + \
|
||||
'name="optionnotes" style="height:400px" spellcheck="true">' + \
|
||||
personNotes + '</textarea>\n'
|
||||
|
||||
optionsStr += ' </form>\n'
|
||||
|
|
|
@ -110,7 +110,8 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str,
|
|||
profileForm += ' <label class="labels">' + \
|
||||
translate['Your bio'] + '</label><br>\n'
|
||||
profileForm += ' <textarea id="message" name="bio" ' + \
|
||||
'style="height:130px">' + bioStr + '</textarea>\n'
|
||||
'style="height:130px" spellcheck="true">' + \
|
||||
bioStr + '</textarea>\n'
|
||||
profileForm += '</div>\n'
|
||||
|
||||
profileForm += '<div class="container next">\n'
|
||||
|
|
Loading…
Reference in New Issue