mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-29 11:44:21 +08:00 
			
		
		
		
	filtering out initial <p> </p> which is ugly when switching to code
This commit is contained in:
		
							parent
							
								
									4ed2dc9f53
								
							
						
					
					
						commit
						f3ccf85285
					
				| @ -209,6 +209,10 @@ async function saveNoteImages(noteId, noteText, sourceId) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| async function updateNote(noteId, newNote, dataKey, sourceId) { | async function updateNote(noteId, newNote, dataKey, sourceId) { | ||||||
|  |     if (newNote.detail.note_text === '<p> </p>') { | ||||||
|  |         newNote.detail.note_text = ''; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     if (newNote.detail.is_protected) { |     if (newNote.detail.is_protected) { | ||||||
|         await encryptNote(newNote, dataKey); |         await encryptNote(newNote, dataKey); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner