mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	insert current date + time on alt+t
This commit is contained in:
		
							parent
							
								
									361e69d236
								
							
						
					
					
						commit
						b57463d049
					
				| @ -161,3 +161,12 @@ $("#addLinkButton").click(function() { | |||||||
| $(document).bind('keydown', 'alt+s', function() { | $(document).bind('keydown', 'alt+s', function() { | ||||||
|     $("input[name=search]").focus(); |     $("input[name=search]").focus(); | ||||||
| }); | }); | ||||||
|  | 
 | ||||||
|  | $(document).bind('keydown', 'alt+t', function() { | ||||||
|  |     const date = new Date(); | ||||||
|  | 
 | ||||||
|  |     const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " + | ||||||
|  |         date.getHours() + ":" + date.getMinutes(); | ||||||
|  | 
 | ||||||
|  |     $('#noteDetail').summernote('insertText', dateString); | ||||||
|  | }); | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner