mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix empty range items handling
This commit is contained in:
		
							parent
							
								
									f8bec35893
								
							
						
					
					
						commit
						c08c4531db
					
				| @ -238,7 +238,9 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget { | |||||||
|         let text = ''; |         let text = ''; | ||||||
| 
 | 
 | ||||||
|         for (const item of range.getItems()) { |         for (const item of range.getItems()) { | ||||||
|             text += item.data; |             if (item.data) { | ||||||
|  |                 text += item.data; | ||||||
|  |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return text; |         return text; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam