Fix spacebar bug in Firefox

This commit is contained in:
Sauli Anto
2020-04-05 17:24:46 +03:00
parent 781b7c20fe
commit 9d15010f4a
4 changed files with 22 additions and 21 deletions

View File

@@ -10,7 +10,6 @@ import MainFormView from './ui/mainformview';
// Need math commands from there
import MathEditing from './mathediting';
import { defaultConfig } from './utils';
import mathIcon from '../theme/icons/math.svg';
@@ -69,7 +68,7 @@ export default class MathUI extends Plugin {
const editor = this.editor;
const mathCommand = editor.commands.get( 'math' );
const mathConfig = Object.assign( defaultConfig, this.editor.config.get( 'math' ) );
const mathConfig = this.editor.config.get( 'math' );
const formView = new MainFormView( editor.locale, mathConfig.engine, mathConfig.enablePreview, this._previewUid );
@@ -111,7 +110,7 @@ export default class MathUI extends Plugin {
this._balloon.add( {
view: this.formView,
position: this._getBalloonPositionData(),
position: this._getBalloonPositionData()
} );
if ( this._balloon.visibleView === this.formView ) {