Skip to content

Commit

Permalink
fix: focus on proper editor when have multiples
Browse files Browse the repository at this point in the history
  • Loading branch information
xjiang-at-wiris committed Aug 26, 2024
1 parent 0610d7e commit 9f3037f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/ckeditor4/plugin.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import StringManager from "@wiris/mathtype-html-integration-devkit/src/stringman
import packageInfo from "./package.json";

/**
* This property contains all Froala Integration instances.
* This property contains all CKEditor4 Integration instances.
* @type {Object}
*/
export const instances = {};
/**
* This property contains the current Froala integration instance,
* This property contains the current CKEditor4 integration instance,
* which is the instance of the active editor.
* @class
* @type {IntegrationModel}
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5/src/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default class CKEditor5Integration extends IntegrationModel {
openNewFormulaEditor() {
// Store the editor selection as it will be lost upon opening the modal
this.core.editionProperties.selection = this.editorObject.editing.view.document.selection;

WirisPlugin.currentInstance = this;
return super.openNewFormulaEditor();
}

Expand Down

0 comments on commit 9f3037f

Please sign in to comment.