mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	Added a comment referencing source issue. Also removed a stray commented line.
This commit is contained in:
		
							parent
							
								
									4d375e86b0
								
							
						
					
					
						commit
						82b92aff84
					
				| @ -173,6 +173,7 @@ export default class MermaidEditing extends Plugin { | ||||
| 
 | ||||
| 			domElement.addEventListener( 'input', debouncedListener ); | ||||
| 
 | ||||
| 			/* Workaround for internal #1544 */ | ||||
| 			domElement.addEventListener( 'focus', () => { | ||||
| 				const model = editor.model; | ||||
| 				const selectedElement = model.document.selection.getSelectedElement(); | ||||
| @ -227,7 +228,6 @@ export default class MermaidEditing extends Plugin { | ||||
| 				} else if ( child.name === 'div' && child.hasClass( 'ck-mermaid__preview' ) ) { | ||||
| 					// @todo: we could optimize this and not refresh mermaid if widget is in source mode.
 | ||||
| 					const domPreviewWrapper = domConverter.viewToDom( child, window.document ); | ||||
| 					// console.log( child, domPreviewWrapper );
 | ||||
| 
 | ||||
| 					if ( domPreviewWrapper ) { | ||||
| 						domPreviewWrapper.innerHTML = newSource; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Marek Lewandowski
						Marek Lewandowski