codex-team / codex-team/editor.js
Block Saver with sanitizer
Open
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Hi,
Seems like the `block.save` doesn't sanitize the block data like the [editor.saver.save](https://github.com/codex-team/editor.js/blob/44c29dd645a03ab9b91e6f16f8249055be760b34/src/components/modules/saver.ts#L40) does.
What is the reason for not doing a sanitize on the block save?
Could you also sanitize the data on save or expose this `sanitizeBlocks` and sanitizer config of the block tool on `sanitize` and `block` apis respectively, to provide a way to sanitize it ourselves?
(Willing to contribute if needed).
Thanks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.