mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	resetting the editor after note load - not complete solution because ctrl-z will revert to initial editor state
This commit is contained in:
		
							parent
							
								
									169825abff
								
							
						
					
					
						commit
						a2d174665b
					
				| @ -162,6 +162,9 @@ function loadNote(noteId) { | |||||||
| 
 | 
 | ||||||
|         noteChangeDisabled = true; |         noteChangeDisabled = true; | ||||||
| 
 | 
 | ||||||
|  |         // Clear contents and remove all stored history. This is to prevent undo from going across notes
 | ||||||
|  |         $('#noteDetail').summernote('reset'); | ||||||
|  | 
 | ||||||
|         $('#noteDetail').summernote('code', noteText); |         $('#noteDetail').summernote('code', noteText); | ||||||
| 
 | 
 | ||||||
|         document.location.hash = noteId; |         document.location.hash = noteId; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner