mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 09:42: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();
|
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