@wiris/mathtype-tinymce6 8.4.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/editor_plugin.src.js +3 -2
- package/package.json +2 -2
- package/plugin.min.js +1 -1
- package/project.json +26 -17
package/editor_plugin.src.js
CHANGED
|
@@ -64,9 +64,10 @@ export class TinyMceIntegration extends IntegrationModel {
|
|
|
64
64
|
*/
|
|
65
65
|
getLanguage() {
|
|
66
66
|
const editorSettings = this.editorObject;
|
|
67
|
+
// Try to get editorParameters.language, fail silently otherwise
|
|
67
68
|
try {
|
|
68
69
|
return editorSettings.options.get('mathTypeParameters').editorParameters.language;
|
|
69
|
-
} catch (e) {
|
|
70
|
+
} catch (e) {}
|
|
70
71
|
// Get the deprecated wirisformulaeditorlang
|
|
71
72
|
if (editorSettings.options.get('wirisformulaeditorlang')) {
|
|
72
73
|
console.warn('Deprecated property wirisformulaeditorlang. Use mathTypeParameters on instead.');
|
|
@@ -423,7 +424,7 @@ export const currentInstance = null;
|
|
|
423
424
|
icon: mathTypeIcon,
|
|
424
425
|
});
|
|
425
426
|
}
|
|
426
|
-
|
|
427
|
+
|
|
427
428
|
if (chemEnabled) {
|
|
428
429
|
// Dynamic customEditors buttons.
|
|
429
430
|
const customEditors = WirisPlugin.instances[editor.id].getCore().getCustomEditors();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wiris/mathtype-tinymce6",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"description": "MathType Web for TinyMCE6 editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chem",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepack": "yarn && npm run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@wiris/mathtype-html-integration-devkit": "1.
|
|
35
|
+
"@wiris/mathtype-html-integration-devkit": "1.14.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/core": "^7.15.0",
|