Add automath and fix preview and display button

This commit is contained in:
Sauli Anto
2019-09-28 18:03:05 +03:00
parent eed45a5dd3
commit 6e08776268
7 changed files with 243 additions and 63 deletions

View File

@@ -67,7 +67,7 @@ export default class MathUI extends Plugin {
const formView = new MainFormView( editor.locale, mathConfig.engine );
formView.mathInputView.bind( 'value' ).to( mathCommand, 'value' );
formView.displayButtonView.bind( 'displayIsOn' ).to( mathCommand, 'display' );
formView.displayButtonView.bind( 'isOn' ).to( mathCommand, 'display' );
// Listen to submit button click
this.listenTo( formView, 'submit', () => {