mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +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();
|
||||
this.editorTypeWidget = new EditableCodeTypeWidget();
|
||||
this.editorTypeWidget.isEnabled = () => true;
|
||||
this.editorTypeWidget.getExtraOpts = this.buildEditorExtraOptions;
|
||||
|
||||
const defaultOptions = this.editorTypeWidget.getExtraOpts();
|
||||
this.editorTypeWidget.getExtraOpts = () => {
|
||||
return {
|
||||
...defaultOptions,
|
||||
...this.buildEditorExtraOptions()
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
doRender(): void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user