if (confirm) {
this.inReplyToCommentId = commentToRedraft.inReplyToCommentId
+ // Restore line feed for editing
+ const commentToRedraftText = commentToRedraft.text.replace(/<br.?\/?>/g, '\r\n')
+
if (commentToRedraft.threadId === commentToRedraft.id) {
- this.commentThreadRedraftValue = commentToRedraft.text
+ this.commentThreadRedraftValue = commentToRedraftText
} else {
- this.commentReplyRedraftValue = commentToRedraft.text
+ this.commentReplyRedraftValue = commentToRedraftText
}
}