Skip to content

Commit

Permalink
Merge pull request #189 from editor-js/fix/xss-problem
Browse files Browse the repository at this point in the history
Sanitization configuration improved
  • Loading branch information
robonetphy authored Dec 5, 2022
2 parents 5ee4e1e + 699f3bd commit 72c651d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/image",
"version": "2.7.0",
"version": "2.7.1",
"keywords": [
"codex editor",
"tool",
Expand Down
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,11 @@ export default class ImageTool {
/**
* Paste HTML into Editor
*/
tags: [ 'img' ],

tags: [
{
img: { src: true },
},
],
/**
* Paste URL of image into the Editor
*/
Expand Down

0 comments on commit 72c651d

Please sign in to comment.