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

Expected RegExp but passed boolean parameter in convertContentsForEditor function #1498

Closed
adamsarek opened this issue Jan 14, 2025 · 0 comments
Milestone

Comments

@adamsarek
Copy link

Describe the bug
Editor with default value of strictHTMLValidation option (= false) has a bug that it tries to use boolean as RegExp. Problem is at this line with 3rd parameter.

To Reproduce
Steps to reproduce the behavior:

  1. Load suneditor with default strictHTMLValidation option or setting it to false.
  2. In devtools console there is a warning for this bug.

Expected behavior
Different parameter value or check if it is actually an RegExp.

Screenshots
image

Desktop

  • OS: Windows 11
  • Browser: Google Chrome
  • Version: 131.0.6778.265

Release

  • Version: v2.47.1
@JiHong88 JiHong88 added this to the 2.47.2 milestone Jan 15, 2025
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

No branches or pull requests

2 participants