@wiris/mathtype-ckeditor5 7.27.1 → 7.27.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/plugin.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wiris/mathtype-ckeditor5",
3
- "version": "7.27.1",
3
+ "version": "7.27.2",
4
4
  "description": "MathType Web for CKEditor5 editor",
5
5
  "keywords": [
6
6
  "chem",
package/src/plugin.js CHANGED
@@ -326,7 +326,9 @@ export default class MathType extends Plugin {
326
326
  /* Although we use the HtmlDataProcessor to obtain the attributes,
327
327
  we must create a new EmptyElement which is independent of the
328
328
  DataProcessor being used by this editor instance */
329
- return viewWriter.createEmptyElement('img', imgElement.getAttributes());
329
+ return viewWriter.createEmptyElement('img', imgElement.getAttributes(), {
330
+ renderUnsafeAttributes: [ 'src' ]
331
+ } );
330
332
  }
331
333
 
332
334
  // Model -> Editing view