Browse Source

convert new lines to empty <p> tags

pull/1342/head
Ginger Wong 4 years ago
parent
commit
81ecb9a379
  1. 2
      webroot/js/components/chat/chat-message-view.js

2
webroot/js/components/chat/chat-message-view.js

@ -183,7 +183,7 @@ function formatTimestamp(sentAt) { @@ -183,7 +183,7 @@ function formatTimestamp(sentAt) {
text into the `contenteditable` area on a page.
*/
function convertToMarkup(str = '') {
return str; // convertToText(str).replace(/\n/g, '<br>');
return convertToText(str).replace(/\n/g, '<p></p>');
}
function stripTags(str) {

Loading…
Cancel
Save