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

Pasted HTML cause error in froala and unable to switch to codeView #89

Open
BogCZE opened this issue Sep 11, 2024 · 0 comments
Open

Pasted HTML cause error in froala and unable to switch to codeView #89

BogCZE opened this issue Sep 11, 2024 · 0 comments

Comments

@BogCZE
Copy link

BogCZE commented Sep 11, 2024

Hi guys,
We are facing an issue when we paste concrete HTML to froala in codeView.
Steps to reproduce:

  • open fiddle below
  • switch froala editor to codeView
  • copy HTML from attached file
  • paste copied HTML to froala codeView
  • switch out from codeView
  • in console you can see "Script error" message

If it is a problem with some tag, attribute or style it would be nice if froala gives as some hint what is wrong to be able to fix it and of course it would be nice if froala does not stop working - after this error is thrown froala stops working - every function in toolbar throws error.

Fiddle here:
https://jsfiddle.net/froala/a1bs6w9j/
File with failing HTML content:
FailingHTML.txt

Thanks in advance guys

Peter

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

1 participant