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

Froala stripping tags out of HTML #4313

Open
travch opened this issue Aug 20, 2021 · 3 comments
Open

Froala stripping tags out of HTML #4313

travch opened this issue Aug 20, 2021 · 3 comments

Comments

@travch
Copy link

travch commented Aug 20, 2021

Expected behavior.

Froala can be initialized with html that is not subjected to cleaning / modification - it remains identical to the string passed.

Actual behavior.

Froala modifies html even with such options as htmlUntouched: true.

Steps to reproduce the problem.

initialize the editor with <tr><td>hello</td></tr> and then view the html. Minimal fiddle showing the issue: https://jsfiddle.net/tjc0090/kdawvq3c/4/

I should note this also happens if <tr><td>hello</td></tr> is entered in the code view and the user toggles back to normal view.

Editor version.

froala-editor: 4.0.4
react-froala-wysiwyg: 4.0.4,

OS.

macOS Catalina 10.15.7

Browser.

Chrome 92.0.4515.131

@AkshayCM
Copy link

Thank you for your feedback. The request has been reported to the product management team for evaluation and consideration for an upcoming release.

@lucasschirm
Copy link

Hi @AkshayCM, do you know if there`s any plan to fix this issue?

@SKPFCW
Copy link

SKPFCW commented Jan 27, 2025

I am struggling with the same problem. See #4866

One solution could be that the editor saves structures attributed with contendeditable="false" from being cleaned up/changed. Please @froala, could you consider this?

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

4 participants