mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02: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