forked from gitea/gitea
		
	
							parent
							
								
									049af0d3d0
								
							
						
					
					
						commit
						1ed4323005
					
				| @ -1362,7 +1362,16 @@ function initWikiForm() { | ||||
|         }, '|', | ||||
|         'unordered-list', 'ordered-list', '|', | ||||
|         'link', 'image', 'table', 'horizontal-rule', '|', | ||||
|         'clean-block', 'preview', 'fullscreen', 'side-by-side'] | ||||
|         'clean-block', 'preview', 'fullscreen', 'side-by-side', '|', | ||||
|         { | ||||
|           name: 'revert-to-textarea', | ||||
|           action(e) { | ||||
|             e.toTextArea(); | ||||
|           }, | ||||
|           className: 'fa fa-file', | ||||
|           title: 'Revert to simple textarea', | ||||
|         }, | ||||
|       ] | ||||
|     }); | ||||
|     $(simplemde.codemirror.getInputField()).addClass('js-quick-submit'); | ||||
| 
 | ||||
| @ -1466,7 +1475,16 @@ function setSimpleMDE($editArea) { | ||||
|       'code', 'quote', '|', | ||||
|       'unordered-list', 'ordered-list', '|', | ||||
|       'link', 'image', 'table', 'horizontal-rule', '|', | ||||
|       'clean-block', 'preview', 'fullscreen', 'side-by-side'] | ||||
|       'clean-block', 'preview', 'fullscreen', 'side-by-side', '|', | ||||
|       { | ||||
|         name: 'revert-to-textarea', | ||||
|         action(e) { | ||||
|           e.toTextArea(); | ||||
|         }, | ||||
|         className: 'fa fa-file', | ||||
|         title: 'Revert to simple textarea', | ||||
|       }, | ||||
|     ] | ||||
|   }); | ||||
| 
 | ||||
|   return true; | ||||
| @ -1488,7 +1506,16 @@ function setCommentSimpleMDE($editArea) { | ||||
|       'code', 'quote', '|', | ||||
|       'unordered-list', 'ordered-list', '|', | ||||
|       'link', 'image', 'table', 'horizontal-rule', '|', | ||||
|       'clean-block'] | ||||
|       'clean-block', '|', | ||||
|       { | ||||
|         name: 'revert-to-textarea', | ||||
|         action(e) { | ||||
|           e.toTextArea(); | ||||
|         }, | ||||
|         className: 'fa fa-file', | ||||
|         title: 'Revert to simple textarea', | ||||
|       }, | ||||
|     ] | ||||
|   }); | ||||
|   simplemde.codemirror.setOption('extraKeys', { | ||||
|     Enter: () => { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zeripath
						zeripath