mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	disable "cut to note" feature because of issues with CKEditor
This commit is contained in:
		
							parent
							
								
									9f64e994dc
								
							
						
					
					
						commit
						7775376b33
					
				| @ -500,6 +500,12 @@ async function createNote(node, parentNoteId, target, isProtected, saveSelection | |||||||
|     if (noteDetailService.getCurrentNoteType() !== 'text') { |     if (noteDetailService.getCurrentNoteType() !== 'text') { | ||||||
|         saveSelection = false; |         saveSelection = false; | ||||||
|     } |     } | ||||||
|  |     else { | ||||||
|  |         // just disable this feature altogether - there's a problem that note containing image or table at the beginning
 | ||||||
|  |         // of the content will be auto-selected by CKEditor and then CTRL-P with no user interaction will automatically save
 | ||||||
|  |         // the selection - see https://github.com/ckeditor/ckeditor5/issues/1384
 | ||||||
|  |         saveSelection = false; | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     let title, content; |     let title, content; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner