Skip to content

Commit

Permalink
New version 4.0.11 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 Feb 29, 2024
1 parent 1ce54e3 commit 61d0bcf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 84 deletions.
4 changes: 0 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ declare global {
interface Function {
originalConstructor: Function;
}

interface Highlight {
(...args: any[]): any;
}
}

export { Jodit };
84 changes: 6 additions & 78 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "4.0.10",
"version": "4.0.11",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down Expand Up @@ -108,7 +108,7 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"typescript": "^5.4.1-rc",
"typescript": "^5.3.3",
"webpack": "5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-middleware": "^7.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/plugins/search/helpers/highlight-text-ranges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function highlightTextRanges(
return range;
});

// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
const searchHighlight = new Highlight(...ranges);
// @ts-ignore
CSS.highlights.clear();
Expand Down

0 comments on commit 61d0bcf

Please sign in to comment.