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

Editor inserting blank div when trying to save empty text v4.2.0+ #4834

Open
hassanasad opened this issue Nov 1, 2024 · 3 comments
Open

Comments

@hassanasad
Copy link

Expected behavior.

In version 4.2.0, if empty text is saved, the editor doesn't auto inject any DOM (div) elements. This should be the expected behaviour.

Actual behavior.

In version 4.3.0, if empty text is saved, the editor is auto injecting an empty

element.

<div style="font-size: 13px; font-family: &quot;Open Sans&quot;;"></div>

I am surprised why it injects &quot; also.

Editor version.

v4.3.0

OS.

MacOS

Browser.

Chrome

@hassanasad hassanasad changed the title Editor inserting blank div when trying to save empty text Editor inserting blank div when trying to save empty text v4.2.0+ Nov 8, 2024
@MikeMugu
Copy link

MikeMugu commented Nov 12, 2024

Having a similar issue where content is unexpectedly wrapped in a <div style="font-size: 14;">

@hassanasad
Copy link
Author

@harasunu-narayan Can you please check - its been a while with this bug. I am fairly sure it should be a small fix.

@zolyyy
Copy link

zolyyy commented Nov 29, 2024

For me same problem...

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

3 participants