mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
Add typesetting engine lazy load feature
This commit is contained in:
@@ -70,7 +70,13 @@ export default class MathUI extends Plugin {
|
||||
|
||||
const mathConfig = this.editor.config.get( 'math' );
|
||||
|
||||
const formView = new MainFormView( editor.locale, mathConfig.engine, mathConfig.enablePreview, this._previewUid );
|
||||
const formView = new MainFormView(
|
||||
editor.locale,
|
||||
mathConfig.engine,
|
||||
mathConfig.lazyLoad,
|
||||
mathConfig.enablePreview,
|
||||
this._previewUid
|
||||
);
|
||||
|
||||
formView.mathInputView.bind( 'value' ).to( mathCommand, 'value' );
|
||||
formView.displayButtonView.bind( 'isOn' ).to( mathCommand, 'display' );
|
||||
|
||||
Reference in New Issue
Block a user