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

fix dcat-admin WYSIWYG editor html escape bug #2158

Open
wants to merge 1 commit into
base: 2.0
Choose a base branch
from

Conversation

xiaohuilam
Copy link
Contributor

Bug reproduce step:

  1. Initialize a dcat-admin project and create an edit form contains a field using ->editor() method.
  2. Setup dcat-admin to use tinymce to render ->editor()
  3. Access admin dashboard edit page including wysiwyg, type something in wysiwyg field. And insert a snippet of HTML code, save the form.
  4. Re-access the edit page, view the source code of entire wysiwyg field’s value.

You’re expected to see the html code was escaped. And this will lead you to lose code if save the form again. This is unexpected than what the user/editor’s intend. So I think it is definitely a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant