diff --git a/CHANGELOG.md b/CHANGELOG.md index 41155604..88f2ce61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ > - :house: [Internal] > - :nail_care: [Polish] -## 4.2.36 +## 4.2.37 ### :bug: Bug Fix diff --git a/package-lock.json b/package-lock.json index 4c8c7c32..09602603 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jodit", - "version": "4.2.36", + "version": "4.2.37", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jodit", - "version": "4.2.36", + "version": "4.2.37", "license": "MIT", "dependencies": { "autobind-decorator": "^2.4.0" diff --git a/package.json b/package.json index 96e54808..9dd6c09d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jodit", - "version": "4.2.36", + "version": "4.2.37", "description": "Jodit is an awesome and useful wysiwyg editor with filebrowser", "main": "build/jodit.min.js", "types": "./types/index.d.ts", diff --git a/src/modules/uploader/uploader.test.js b/src/modules/uploader/uploader.test.js index 08a96709..254ad2ae 100644 --- a/src/modules/uploader/uploader.test.js +++ b/src/modules/uploader/uploader.test.js @@ -64,7 +64,7 @@ describe('Test uploader module', function () { ); expect(sortAttributes(editor.value)).equals( - '

test

' + '

test

' ); done(); @@ -98,7 +98,7 @@ describe('Test uploader module', function () { } }, events: { - afterInsertImage: function (img) { + afterInsertImage: img => { try { expect(img.src).equals( 'https://xdsoft.net/jodit/files/test_logo.gif' @@ -107,7 +107,8 @@ describe('Test uploader module', function () { expect( sortAttributes(editor.value) ).equals( - '

test

' + // Because afterInsertImage called before resizer handler we use attribute width + '

test

' ); done(); @@ -148,6 +149,9 @@ describe('Test uploader module', function () { history: { timeout: 0 }, + resizer: { + forImageChangeAttributes: true + }, uploader: { url: 'https://xdsoft.net/jodit/connector/index.php?action=fileUpload' }, @@ -168,7 +172,7 @@ describe('Test uploader module', function () { expect( sortAttributes(editor.value) ).equals( - '

test

' + '

test

' ); done(); } catch (e) {