mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	compose_ui: Automatically resize textarea after adding new syntax.
This fixes existing problems as well as an upcoming problem that copy-and-pasting in markdown should usually expand the compose text area.
This commit is contained in:
		@@ -29,6 +29,9 @@ exports.smart_insert = function (textarea, syntax) {
 | 
			
		||||
 | 
			
		||||
    textarea.caret(syntax);
 | 
			
		||||
    textarea.focus();
 | 
			
		||||
    // This should just call exports.autosize_textarea, but it's a bit
 | 
			
		||||
    // annoying for the unit tests, so we don't do that.
 | 
			
		||||
    textarea.trigger("autosize.resize");
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.insert_syntax_and_focus = function (syntax) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user