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);