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 4.2.1: Setting fontSizeDefaultSelection in the config results in multiple wrapper divs being added to content on subsequent edits #4801

Closed
scottwilkin opened this issue Jul 11, 2024 · 2 comments

Comments

@scottwilkin
Copy link

Expected behavior.

When the editor is initialized on a text area containing content that has been previously formatted with the editor it should not add another wrapper div that sets the font-size inline on subsequent edits.

Actual behavior.

When editing content previously formatted with the editor multiple wrapping divs are being added to the content.

Steps to reproduce the problem.

With a configuration like seen in this fiddle: https://jsfiddle.net/t4csdhmn/2/ when editing the content subsequent occasions multiple wrapping font-size divs are being applied to the content see screen shot:

Screenshot 2024-07-11 at 3 06 43 PM
Editor version.

4.2.1

OS.

macOS 13.6.2 (22G320)

Browser.

Version 126.0.6478.127 (Official Build) (arm64)

@scottwilkin
Copy link
Author

If fontSizeDefaultSelection is disabled it doesn't try to add the wrapping div.

@hattapoglu
Copy link

Related to #4794 and #4795

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