create code box in write-new-style editor immediately
This commit is contained in:
		
							parent
							
								
									562998e4b2
								
							
						
					
					
						commit
						d3ed4ced92
					
				|  | @ -1212,14 +1212,11 @@ function init() { | ||||||
|         section[CssToProperty[i]] = [params[i]]; |         section[CssToProperty[i]] = [params[i]]; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|     window.onload = () => { |  | ||||||
|       window.onload = null; |  | ||||||
|     addSection(null, section); |     addSection(null, section); | ||||||
|     editors[0].setOption('lint', CodeMirror.defaults.lint); |     editors[0].setOption('lint', CodeMirror.defaults.lint); | ||||||
|     // default to enabled
 |     // default to enabled
 | ||||||
|     $('#enabled').checked = true; |     $('#enabled').checked = true; | ||||||
|     initHooks(); |     initHooks(); | ||||||
|     }; |  | ||||||
|     return; |     return; | ||||||
|   } |   } | ||||||
|   // This is an edit
 |   // This is an edit
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user