Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed sanitizer on pasting HTML #1686

Merged
merged 5 commits into from
Apr 26, 2022

Conversation

woren951
Copy link
Contributor

When I paste HTML text, sanitizer remove all inline tags and render only inner text. Because to HTMLJanitor passing wrong config.

@alxndr
Copy link

alxndr commented Sep 15, 2021

Any ETA for this fix?

@pawelbajgrowicz
Copy link

@neSpecc @khaydarov @gohabereg are you planning to check this pull request in the near future? This would be really great 🚀

@Broutard
Copy link

Any news on it ? The bug appeared since 2.20.0

@swapster
Copy link
Contributor

@gohabereg @khaydarov @neSpecc, Hi! Could you please check this PR?

swapster added a commit to swapster/editor.js that referenced this pull request Feb 2, 2022
@Naroh091
Copy link

Also waiting for this to get merged 🙏

swapster added a commit to swapster/editor.js that referenced this pull request Feb 14, 2022
swapster added a commit to swapster/editor.js that referenced this pull request Feb 14, 2022
@@ -662,7 +662,7 @@ export default class Paste extends Module {

/** If there is no pattern substitute - insert string as it is */
if (BlockManager.currentBlock && BlockManager.currentBlock.currentInput) {
const currentToolSanitizeConfig = BlockManager.currentBlock.tool.sanitizeConfig;
const currentToolSanitizeConfig = BlockManager.currentBlock.tool.baseSanitizeConfig;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the sanitizeConfig works wrong and we would better to fix it. Need to dig deeper.

@neSpecc
Copy link
Member

neSpecc commented Apr 26, 2022

Looks like the PR is correct, but we have a problem with naming. See #2029

@neSpecc neSpecc enabled auto-merge (squash) April 26, 2022 19:41
@neSpecc neSpecc disabled auto-merge April 26, 2022 19:42
@neSpecc neSpecc merged commit 25f7ec2 into codex-team:next Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants