mirror of
https://github.com/codex-team/editor.js
synced 2024-05-18 14:26:48 +02:00
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:
parent
50cbc4d63e
commit
51b1fdc9e0
|
@ -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
|
||||
|
||||
|
|
2
types/configs/sanitizer-config.d.ts
vendored
2
types/configs/sanitizer-config.d.ts
vendored
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue