From 99db226265e77dd4b5b5203b051be43ca0f14638 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 16 Mar 2015 00:05:04 +0100 Subject: [PATCH] Fixed draft newline --- app/js/message_composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/message_composer.js b/app/js/message_composer.js index f7e716df..c9ceadce 100644 --- a/app/js/message_composer.js +++ b/app/js/message_composer.js @@ -850,7 +850,7 @@ MessageComposer.prototype.setValue = function (text) { } MessageComposer.prototype.getRichHtml = function (text) { - return $('
').text(text).html().replace(/:([A-Za-z0-9\-\+\*_]+?):/gi, (function (all, shortcut) { + return $('
').text(text).html().replace(/\n/g, '
').replace(/:([A-Za-z0-9\-\+\*_]+?):/gi, (function (all, shortcut) { var code = EmojiHelper.shortcuts[shortcut]; if (code !== undefined) { return this.getEmojiHtml(code);