codex-team / codex-team/editor.js

Why copied HTML data when selected blocks, are sanitized with the fixed SanitizerConfig?

Open
#1,451 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

- Sanitizing HTML data when selected blocks: https://github.com/codex-team/editor.js/blob/next/src/components/modules/blockSelection.ts#L300
- The fixed SanitizerConfig: https://github.com/codex-team/editor.js/blob/next/src/components/modules/blockSelection.ts#L34

I think copied data when selected blocks doen't need to be sanitized, because sanitizing is only required when pasting.
It is sanitized too enough by using the fixed SanitizerConfig.

Why copied HTML data when selected blocks, are sanitized with the fixed SanitizerConfig?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.