Skip to content

Commit

Permalink
New version 4.2.37 Read more https://github.com/xdan/jodit/blob/main/…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Oct 14, 2024
1 parent a21b5e1 commit adf300b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
> - :house: [Internal]
> - :nail_care: [Polish]
## 4.2.36
## 4.2.37

### :bug: Bug Fix

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 8 additions & 4 deletions src/modules/uploader/uploader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Test uploader module', function () {
);

expect(sortAttributes(editor.value)).equals(
'<p>test<img src="https://xdsoft.net/jodit/files/logo.gif" style="width:300px"></p>'
'<p>test<img src="https://xdsoft.net/jodit/files/logo.gif" width="300"></p>'
);

done();
Expand Down Expand Up @@ -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'
Expand All @@ -107,7 +107,8 @@ describe('Test uploader module', function () {
expect(
sortAttributes(editor.value)
).equals(
'<p>test<img src="https://xdsoft.net/jodit/files/test_logo.gif" style="width:300px"></p>'
// Because afterInsertImage called before resizer handler we use attribute width
'<p>test<img src="https://xdsoft.net/jodit/files/test_logo.gif" width="300"></p>'
);

done();
Expand Down Expand Up @@ -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'
},
Expand All @@ -168,7 +172,7 @@ describe('Test uploader module', function () {
expect(
sortAttributes(editor.value)
).equals(
'<p>test<img src="https://xdsoft.net/jodit/files/logo.gif" style="width:300px"></p>'
'<p>test<img src="https://xdsoft.net/jodit/files/logo.gif" width="300"></p>'
);
done();
} catch (e) {
Expand Down

0 comments on commit adf300b

Please sign in to comment.