-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
Any ETA for this fix? |
@neSpecc @khaydarov @gohabereg are you planning to check this pull request in the near future? This would be really great 🚀 |
Any news on it ? The bug appeared since 2.20.0 |
@gohabereg @khaydarov @neSpecc, Hi! Could you please check this PR? |
Also waiting for this to get merged 🙏 |
@@ -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; |
There was a problem hiding this comment.
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.
Looks like the PR is correct, but we have a problem with naming. See #2029 |
When I paste HTML text, sanitizer remove all inline tags and render only inner text. Because to HTMLJanitor passing wrong config.