Skip to content

Commit

Permalink
New version 4.0.0-beta.103 Read more https://github.com/xdan/jodit/bl…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Nov 4, 2023
1 parent 4fcd2c7 commit b75a534
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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.0.0-beta.102",
"version": "4.0.0-beta.103",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down
7 changes: 3 additions & 4 deletions src/plugins/sticky/sticky.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ describe('Sticky plugin', function () {
await editor.waitForReady();

editor.value = '<p>stop</p>'.repeat(300);
await editor.async.promise(resolve =>
editor.async.requestAnimationFrame(resolve)
);
await editor.async.requestIdlePromise();

const offset = Jodit.modules.Helpers.offset(
Expand All @@ -87,14 +90,10 @@ describe('Sticky plugin', function () {
editor.ownerDocument
);

await editor.async.requestIdlePromise();

console.log(offset);
window.scroll(0, offset.top + offset.height / 2); // scroll page to bottom
simulateEvent('scroll', window);
console.log(window.scrollY);
await editor.async.requestIdlePromise();
await delay(100);

expect(true).equals(
editor.container.classList.contains('jodit_sticky')
Expand Down

0 comments on commit b75a534

Please sign in to comment.