@wiris/mathtype-html-integration-devkit
Advanced tools
Comparing version 1.14.0 to 1.14.1
@@ -39,3 +39,3 @@ # Getting started | ||
WirisPlugin.currentInstance = this.wiris_generic; | ||
WirisPlugin.currentInstance = genericIntegrationInstance; | ||
</script> | ||
@@ -77,3 +77,3 @@ ``` | ||
WirisPlugin.currentInstance = this.wiris_generic; | ||
WirisPlugin.currentInstance = genericIntegrationInstance; | ||
</script> | ||
@@ -80,0 +80,0 @@ </html> |
@@ -32,3 +32,3 @@ The following instructions show how to configure a generic integration to use custom MathType Web integration services. These instructions assume that a custom editor is being configured following the [Getting started](./tutorial-getting_started.html) guide. | ||
WirisPlugin.currentInstance = this.wiris_generic; | ||
WirisPlugin.currentInstance = genericIntegrationInstance; | ||
</script> | ||
@@ -64,3 +64,3 @@ ``` | ||
WirisPlugin.currentInstance = this.wiris_generic; | ||
WirisPlugin.currentInstance = genericIntegrationInstance; | ||
</script> | ||
@@ -96,3 +96,3 @@ ``` | ||
WirisPlugin.currentInstance = this.wiris_generic; | ||
WirisPlugin.currentInstance = genericIntegrationInstance; | ||
</script> | ||
@@ -131,4 +131,4 @@ ``` | ||
WirisPlugin.currentInstance = this.wiris_generic; | ||
WirisPlugin.currentInstance = genericIntegrationInstance; | ||
</script> | ||
``` |
{ | ||
"name": "@wiris/mathtype-html-integration-devkit", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "Allows to integrate MathType Web into any JavaScript HTML WYSIWYG rich text editor.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -407,3 +407,3 @@ /* eslint-disable no-bitwise */ | ||
// Sanitize html code without removing the <semantics> and <annotation> tags. | ||
html = DOMPurify.sanitize(html, { ADD_TAGS: ['semantics', 'annotation'], ALLOWED_ATTR: ['mathvariant', 'class', 'linebreak']}); | ||
html = DOMPurify.sanitize(html, { ADD_TAGS: ['semantics', 'annotation'], ALLOWED_ATTR: ['mathvariant', 'class', 'linebreak', 'open', 'close']}); | ||
// Readd old annotation content. | ||
@@ -410,0 +410,0 @@ return html.replace(annotationRegex, annotation); |
1796329
14349