mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Add shortcut to save wiki page (#4452)
This allows saving the wiki page with Ctrl-Enter.
This commit is contained in:
		 Michael Kuhn
					Michael Kuhn
				
			
				
					committed by
					
						 Jonas Franz
						Jonas Franz
					
				
			
			
				
	
			
			
			 Jonas Franz
						Jonas Franz
					
				
			
						parent
						
							ba358ecbf5
						
					
				
				
					commit
					344dc07239
				
			| @@ -790,7 +790,7 @@ function initTeamSettings() { | ||||
| function initWikiForm() { | ||||
|     var $editArea = $('.repository.wiki textarea#edit_area'); | ||||
|     if ($editArea.length > 0) { | ||||
|         new SimpleMDE({ | ||||
|         var simplemde = new SimpleMDE({ | ||||
|             autoDownloadFontAwesome: false, | ||||
|             element: $editArea[0], | ||||
|             forceSync: true, | ||||
| @@ -825,6 +825,7 @@ function initWikiForm() { | ||||
|                 "link", "image", "table", "horizontal-rule", "|", | ||||
|                 "clean-block", "preview", "fullscreen"] | ||||
|         }) | ||||
|         $(simplemde.codemirror.getInputField()).addClass("js-quick-submit"); | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user