diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue index cf7a7154e0f..6124db273ab 100644 --- a/src/components/NewMessageForm/NewMessageForm.vue +++ b/src/components/NewMessageForm/NewMessageForm.vue @@ -318,6 +318,8 @@ export default { */ rawToParsed(text) { text = text.replace(/
/g, '\n') + text = text.replace(/
/g, '\n') + text = text.replace(/<\/div>/g, '') text = text.replace(/ /g, ' ') // Since we used innerHTML to get the content of the div.contenteditable