From 5d6e0af6053509c9613edb89b5df92eb5feadc47 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sat, 4 Nov 2017 01:58:05 +0100 Subject: [PATCH] Comments: Auto-resize textarea field as we type --- src/templates/nodes/custom/comment/list_embed.pug | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/templates/nodes/custom/comment/list_embed.pug b/src/templates/nodes/custom/comment/list_embed.pug index 3b7ee48a..3050240c 100644 --- a/src/templates/nodes/custom/comment/list_embed.pug +++ b/src/templates/nodes/custom/comment/list_embed.pug @@ -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')