Comments: Auto-resize textarea field as we type
This commit is contained in:
@@ -84,12 +84,14 @@ script.
|
|||||||
}
|
}
|
||||||
$(scrollToLinkedComment);
|
$(scrollToLinkedComment);
|
||||||
|
|
||||||
|
|
||||||
|
$('#comment_field').autoResize();
|
||||||
|
|
||||||
// Initialize Markdown to later convert comment as we type
|
// Initialize Markdown to later convert comment as we type
|
||||||
var convert = new Markdown.getSanitizingConverter();
|
var convert = new Markdown.getSanitizingConverter();
|
||||||
Markdown.Extra.init(convert);
|
Markdown.Extra.init(convert);
|
||||||
convert = convert.makeHtml;
|
convert = convert.makeHtml;
|
||||||
|
|
||||||
|
|
||||||
// Submit new comment
|
// Submit new comment
|
||||||
$(document)
|
$(document)
|
||||||
.off('click','body .comment-action-submit')
|
.off('click','body .comment-action-submit')
|
||||||
|
Reference in New Issue
Block a user