From 5f7cc6a32739c0683b2b1b84d65e66ff979d8831 Mon Sep 17 00:00:00 2001 From: gabek Date: Sat, 24 Jul 2021 17:26:17 +0000 Subject: [PATCH] Prettified Code! --- webroot/js/components/chat/chat-input.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webroot/js/components/chat/chat-input.js b/webroot/js/components/chat/chat-input.js index 258708562..3d3b5dce9 100644 --- a/webroot/js/components/chat/chat-input.js +++ b/webroot/js/components/chat/chat-input.js @@ -124,7 +124,8 @@ export default class ChatInput extends Component { } const position = getCaretPosition(this.formMessageInput.current); - const newHTML = inputHTML.substring(0, position) + + const newHTML = + inputHTML.substring(0, position) + content + inputHTML.substring(position);