Skip to content

Commit

Permalink
New version 4.2.3 Read more https://github.com/xdan/jodit/blob/main/C…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Apr 22, 2024
1 parent 9115616 commit 470e956
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
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.2",
"version": "4.2.3",
"description": "Jodit is an awesome and useful wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/modules/toolbar/toolbar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ describe('Toolbar', () => {
});

describe('on the right side', function () {
it('Should open popup in toolbar with float by left editor side', function () {
it('Should open popup in toolbar with float by left editor side', async () => {
const editor = getJodit({
width: 306,
buttons: [
Expand All @@ -456,6 +456,10 @@ describe('Toolbar', () => {
});

editor.value = '<p>test</p>'.repeat(10);
window.scrollTo(0, 10_000)

Check failure on line 459 in src/modules/toolbar/toolbar.test.js

View workflow job for this annotation

GitHub Actions / build

Insert `;`

Check failure on line 459 in src/modules/toolbar/toolbar.test.js

View workflow job for this annotation

GitHub Actions / release

Insert `;`
await new Promise(resolve =>
requestAnimationFrame(resolve)
);

clickButton('video', editor, 'button', true);

Expand All @@ -465,6 +469,7 @@ describe('Toolbar', () => {
const positionPopup = offset(popup);
const positionContainer = offset(editor.container);

Check failure on line 470 in src/modules/toolbar/toolbar.test.js

View workflow job for this annotation

GitHub Actions / build

Delete `⏎`

Check failure on line 470 in src/modules/toolbar/toolbar.test.js

View workflow job for this annotation

GitHub Actions / release

Delete `⏎`


expect(
Math.abs(
positionPopup.left +
Expand Down

0 comments on commit 470e956

Please sign in to comment.