Skip to content

Commit

Permalink
New version 5.0.7. Read more https://github.com/jodit/jodit-react/rel…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Jan 19, 2025
1 parent 6075b4c commit c57b6aa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
> - :house: [Internal]
> - :nail_care: [Polish]
## 5.0.5

- [Fix: Avoid "Abort async" error by utilizing waitForReady API in Jodit destruct handling #287](https://github.com/jodit/jodit-react/pull/287)
- Fixed Config type issue
- Support React 19
-

## 4.0.1

-
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-react",
"version": "5.0.6",
"version": "5.0.7",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit-react.js",
"author": "Chupurnov <[email protected]> (https://xdsoft.net/)",
Expand Down
4 changes: 3 additions & 1 deletion src/JoditEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ const JoditEditor = forwardRef<IJodit, Props>(
if (jodit.isReady) {
jodit.destruct();
} else {
jodit.waitForReady().then((joditInstance) => joditInstance.destruct());
jodit
.waitForReady()
.then(joditInstance => joditInstance.destruct());
}
};
}, [JoditConstructor, config, editorRef]);
Expand Down

0 comments on commit c57b6aa

Please sign in to comment.