mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fix(mermaid): diagram not updating
This commit is contained in:
		
							parent
							
								
									e4f5e5473b
								
							
						
					
					
						commit
						ce5debd9bf
					
				| @ -132,7 +132,14 @@ export default abstract class AbstractSplitTypeWidget extends TypeWidget { | |||||||
|         super(); |         super(); | ||||||
|         this.editorTypeWidget = new EditableCodeTypeWidget(); |         this.editorTypeWidget = new EditableCodeTypeWidget(); | ||||||
|         this.editorTypeWidget.isEnabled = () => true; |         this.editorTypeWidget.isEnabled = () => true; | ||||||
|         this.editorTypeWidget.getExtraOpts = this.buildEditorExtraOptions; | 
 | ||||||
|  |         const defaultOptions = this.editorTypeWidget.getExtraOpts(); | ||||||
|  |         this.editorTypeWidget.getExtraOpts = () => { | ||||||
|  |             return { | ||||||
|  |                 ...defaultOptions, | ||||||
|  |                 ...this.buildEditorExtraOptions() | ||||||
|  |             }; | ||||||
|  |         }; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     doRender(): void { |     doRender(): void { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran