diff options
-rw-r--r-- | src/components/NewMessageForm/NewMessageForm.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue index cf7a7154e..6124db273 100644 --- a/src/components/NewMessageForm/NewMessageForm.vue +++ b/src/components/NewMessageForm/NewMessageForm.vue @@ -318,6 +318,8 @@ export default { */ rawToParsed(text) { text = text.replace(/<br>/g, '\n') + text = text.replace(/<div>/g, '\n') + text = text.replace(/<\/div>/g, '') text = text.replace(/ /g, ' ') // Since we used innerHTML to get the content of the div.contenteditable |