Comments: Auto-resize textarea field as we type

This commit is contained in:
Pablo Vazquez 2017-11-04 01:58:05 +01:00
parent 8187a8a0dd
commit 5d6e0af605

View File

@ -84,12 +84,14 @@ script.
}
$(scrollToLinkedComment);
$('#comment_field').autoResize();
// Initialize Markdown to later convert comment as we type
var convert = new Markdown.getSanitizingConverter();
Markdown.Extra.init(convert);
convert = convert.makeHtml;
// Submit new comment
$(document)
.off('click','body .comment-action-submit')