-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Saving from source dialog executes script tag contents #3470
Comments
@toshniba I assume The |
This is definitely an official plugin as stated out on its site: |
@toshniba Thank you for clarification, we will re-investigate this issue. |
This behaviour can be reproduced using our sample for |
As a temporary workaround, I would cancel the 'save' event and alert the user when in source mode, by checking mode property in 'save' event.
|
Or even better, disable toolbar icon for source mode:
|
Although it's not really bug on our side, we think it wouldn't harm to filter editor content in the case you described, so we will treat it as a feature request. |
Type of report
Bug
Provide detailed reproduction steps
<script>alert('poc');</script>
Expected result
Script tag should be removed before saving as it would when changing back from source view before saving.
Actual result
Seems the sanitizer is not executed when saving from source view.
Other details
The text was updated successfully, but these errors were encountered: