From 38511028ab5c39a15f003003b7bcc8b5318c0256 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 28 Jul 2021 21:40:32 +0200 Subject: [PATCH] Update CharCounter.plugin.js --- Plugins/CharCounter/CharCounter.plugin.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Plugins/CharCounter/CharCounter.plugin.js b/Plugins/CharCounter/CharCounter.plugin.js index a6c694b57f..b9f09927cf 100644 --- a/Plugins/CharCounter/CharCounter.plugin.js +++ b/Plugins/CharCounter/CharCounter.plugin.js @@ -2,7 +2,7 @@ * @name CharCounter * @author DevilBro * @authorId 278543574059057154 - * @version 1.5.5 + * @version 1.5.6 * @description Adds a Character Counter to most Inputs * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,7 +17,7 @@ module.exports = (_ => { "info": { "name": "CharCounter", "author": "DevilBro", - "version": "1.5.5", + "version": "1.5.6", "description": "Adds a Character Counter to most Inputs" }, "changeLog": { @@ -82,6 +82,7 @@ module.exports = (_ => { const typeMap = { normal: "chat", sidebar: "chat", + thread_creation: "threadcreation", form: "upload" }; @@ -115,6 +116,10 @@ module.exports = (_ => { right: 0; bottom: -1.3em; } + ${BDFDB.dotCN._charcounterthreadcreationcounter} { + right: 0; + bottom: -1.1em; + } ${BDFDB.dotCN._charcounteruploadcounter} { right: 0; bottom: -1.0em; @@ -153,6 +158,7 @@ module.exports = (_ => { } processChannelTextAreaContainer (e) { + console.log(e); let editorContainer = BDFDB.ReactUtils.findChild(e.returnvalue, {name: "ChannelEditorContainer"}); if (editorContainer && editorContainer.props.type && !editorContainer.props.disabled) { if (!BDFDB.ArrayUtils.is(e.returnvalue.props.children)) e.returnvalue.props.children = [e.returnvalue.props.children];