Add typesetting engine lazy load feature

This commit is contained in:
Sauli Anto
2020-10-10 13:33:37 +03:00
parent 4323e66ae9
commit a665b64839
6 changed files with 34 additions and 12 deletions

View File

@@ -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' );