codex-team / codex-team/editor.js
Sanitize on Block Tools overwrite the base sanitize config
Open
bug
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Hi,
Any sanitize config provided on a custom block tools seems to overwrite the base sanitizer config (from inline tools and tunes).
And I think this [piece of code is the culprit](https://github.com/codex-team/editor.js/blob/44c29dd645a03ab9b91e6f16f8249055be760b34/src/components/tools/block.ts#L188C11-L188C71).
To support extending the baseSanitizerConfig, shouldn't it be something like `return {...baseConfig, ...toolRules}`?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.