@wiris/mathtype-tinymce7 8.12.0 → 8.13.1

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/README.md CHANGED
@@ -26,11 +26,7 @@ Easily include quality math equations in your documents and digital content.
26
26
  2. Add the plugin as an external plugin:
27
27
 
28
28
  ```js
29
- tinymce.init({
30
- external_plugins: {
31
- tiny_mce_wiris: `node_modules/@wiris/mathtype-tinymce7/plugin.min.js`,
32
- },
33
- });
29
+ tinymce.init({ external_plugins: { tiny_mce_wiris: `node_modules/@wiris/mathtype-tinymce7/plugin.min.js` } });
34
30
  ```
35
31
 
36
32
  3. Add MathType buttons to the TinyMCE7 toolbar and the recommended settings:
@@ -47,6 +43,9 @@ Easily include quality math equations in your documents and digital content.
47
43
  // Not enabling this, will provide formulas from being created and rendered.
48
44
  extended_valid_elements: "*[.*]",
49
45
  valid_elements: "*[*]",
46
+ // This option prevents the DOMPurify library from filtering wiris MathML tags.
47
+ // It's necessary when you want to initialize the editor with a content that contains handwritten formulas.
48
+ allow_mathml_annotation_encodings: ["wiris", "application/json"],
50
49
 
51
50
  // You could set a different language for MathType editor:
52
51
  // language: 'fr_FR',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wiris/mathtype-tinymce7",
3
- "version": "8.12.0",
3
+ "version": "8.13.1",
4
4
  "description": "MathType Web for TinyMCE7 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.17.6"
35
+ "@wiris/mathtype-html-integration-devkit": "1.17.8"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/core": "^7.24.4",