Skip to content

Commit

Permalink
Merge branch 'master' into fix/KB-48969/jump-caret-test
Browse files Browse the repository at this point in the history
  • Loading branch information
xjiang-at-wiris committed Aug 28, 2024
2 parents ed6cf5f + 5ea23eb commit 4f16af0
Show file tree
Hide file tree
Showing 10 changed files with 21,444 additions and 21,935 deletions.
1,128 changes: 626 additions & 502 deletions packages/ckeditor5/dist/browser/index-editor.css

Large diffs are not rendered by default.

18,318 changes: 9,025 additions & 9,293 deletions packages/ckeditor5/dist/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ckeditor5/dist/browser/index.js.map

Large diffs are not rendered by default.

22,551 changes: 11,125 additions & 11,426 deletions packages/ckeditor5/dist/browser/index.umd.js

Large diffs are not rendered by default.

25 changes: 1 addition & 24 deletions packages/ckeditor5/dist/browser/index.umd.js.map

Large diffs are not rendered by default.

1,340 changes: 657 additions & 683 deletions packages/ckeditor5/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ckeditor5/dist/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/ckeditor5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"type": "module",
"exports": {
".": "./src/plugin.js",
"./dist/*.css": "./dist/*.css",
"./dist/*": "./dist/*",
"./browser/*": null,
"./src/*": "./src/*",
"./theme/*": "./theme/*",
"./package.json": "./package.json"
Expand All @@ -50,10 +50,10 @@
"@wiris/mathtype-html-integration-devkit": "1.17.3"
},
"devDependencies": {
"@ckeditor/ckeditor5-dev-build-tools": "^40.2.0",
"ckeditor5": ">=42.0.0"
"@ckeditor/ckeditor5-dev-build-tools": "^42.0.0",
"ckeditor5": ">=43.0.0"
},
"peerDependencies": {
"ckeditor5": ">=42.0.0"
"ckeditor5": ">=43.0.0"
}
}
3 changes: 3 additions & 0 deletions packages/ckeditor5/src/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ 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;

// Focus on the selected editor when multiple editor instances are present
WirisPlugin.currentInstance = this;

return super.openNewFormulaEditor();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/devkit/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export default class Util {
let annotation = html.match(annotationRegex);
// Sanitize html code without removing our supported MathML tags and attributes.
html = DOMPurify.sanitize(html, {
ADD_TAGS: ["semantics", "annotation", "mstack", "msline", "msrow"],
ADD_TAGS: ["semantics", "annotation", "mstack", "msline", "msrow", "none"],
ADD_ATTR: ["linebreak", "charalign", "stackalign"],
});
// Readd old annotation content.
Expand Down

0 comments on commit 4f16af0

Please sign in to comment.