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

Recently changed behaviour - html.get() wraps contents in extra div #4854

Open
DwayneHawkins opened this issue Dec 10, 2024 · 1 comment
Open

Comments

@DwayneHawkins
Copy link

The method as described here https://froala.com/wysiwyg-editor/docs/methods/#html.get
does now (recently changed?) accept a second parameter. If you omit this second parameter (or it's effectively falsy), the output html value will be wrapped in an extra div with a font-size style attribute. This is seems like possible breaking behaviour. As far as I can see, this was changed in a recent minor froala update.

Expected behavior.

When I type "hello" in the froala editor and call editor.html.get(), I expect it to return something like <p>hello</p> as was the case in previous versions.

Actual behavior.

When I type "hello" in the froala editor and call editor.html.get(), it returns <div style=font-size:...><p>hello</p></div>

Editor version.

This changed happened between 4.1.4 and 4.3.1

@hassanasad
Copy link

I believe this is linked with an issue we are facing as well #4834

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