@wiris/mathtype-ckeditor5 8.5.0 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/plugin.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wiris/mathtype-ckeditor5",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"description": "MathType Web for CKEditor5 editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chem",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"@ckeditor/ckeditor5-engine": ">=23.0.0",
|
|
40
40
|
"@ckeditor/ckeditor5-ui": ">=23.0.0",
|
|
41
41
|
"@ckeditor/ckeditor5-widget": ">=23.0.0",
|
|
42
|
-
"@wiris/mathtype-html-integration-devkit": "1.
|
|
42
|
+
"@wiris/mathtype-html-integration-devkit": "1.14.0"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/src/plugin.js
CHANGED
|
@@ -409,7 +409,10 @@ export default class MathType extends Plugin {
|
|
|
409
409
|
*/
|
|
410
410
|
editor.data.get = (options) => {
|
|
411
411
|
let output = get.bind(editor.data)(options);
|
|
412
|
-
|
|
412
|
+
// Ckeditor retrieves editor data and removes the image information on the formulas
|
|
413
|
+
// We transform all the retrieved data to images and then we Parse the data.
|
|
414
|
+
let imageFormula = Parser.initParse(output);
|
|
415
|
+
return Parser.endParse(imageFormula);
|
|
413
416
|
};
|
|
414
417
|
}
|
|
415
418
|
|