Hotfix: sanitizer config type definition (#1491)

* fix: sanitizer config type definition

* update func parram in sanitizer config

* update type

* Update CHANGELOG.md

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
Hiếu Phan 2021-02-18 22:47:11 +07:00 committed by GitHub
parent 50cbc4d63e
commit 51b1fdc9e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- `Improvements` - Remove unused `force` option in `Caret.navigateNext()` and `Caret.navigatePrevious()` [#857](https://github.com/codex-team/editor.js/issues/857#issuecomment-770363438).
- `Improvements` - Remove bundles from the repo [#1541](https://github.com/codex-team/editor.js/pull/1541).
- `Fix` - Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances [#1503](https://github.com/codex-team/editor.js/issues/1503).
- `Fix` - Type definition of the Sanitizer config: the sanitize function now contains param definition [#1491](https://github.com/codex-team/editor.js/pull/1491).
### 2.19.1

View file

@ -31,5 +31,5 @@ export interface SanitizerConfig {
* }
* }
*/
[key: string]: boolean|{[attr: string]: boolean|string}|(() => any);
[key: string]: boolean|{[attr: string]: boolean|string}|((el?: Element) => any);
}