Skip to content

Commit

Permalink
New version 4.0.18 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 Mar 1, 2024
1 parent d4d9027 commit 3a7ec5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 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.17",
"version": "4.0.18",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down
11 changes: 5 additions & 6 deletions src/jodit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ export class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
/**
* Hook after init
*/
protected afterInitHook(): void {
protected afterInitHook(): CanPromise<void> {
// do nothing
}

Expand Down Expand Up @@ -1238,11 +1238,10 @@ export class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
this.e.fire('afterInit', this);
}

this.afterInitHook();

this.setStatus(STATUSES.ready);

this.e.fire('afterConstructor', this);
callPromise(this.afterInitHook(), () => {
this.setStatus(STATUSES.ready);
this.e.fire('afterConstructor', this);
});
};

callPromise(addPlaceResult, init);
Expand Down

0 comments on commit 3a7ec5d

Please sign in to comment.