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

Content changes after page load #4806

Open
PaulKahl opened this issue Aug 16, 2024 · 1 comment
Open

Content changes after page load #4806

PaulKahl opened this issue Aug 16, 2024 · 1 comment

Comments

@PaulKahl
Copy link

If you have a feature suggestion, please add it on the Feature List instead.

I have a Froala control in my page that is potentially empty, or filled with previously saved content. I also have a dirty check in place to compare the before and after of the field when there are changes made.

Sample of content previously saved:
<div style="font-size: 12px;">test123</div>

Expected behavior.

On page load, the data loaded into the Froala control should remain untouched, and pristine. It should still be:
<div style="font-size: 12px;">test123</div>

Actual behavior.

After the page loads, Froala changes the content, making it dirty, and updates it as follows:
<div style="font-size: 12px;"><div style="font-size: 12px;">test123</div></div>

Steps to reproduce the problem.

Load the page with previously saved data.

This also occurs when an empty control is loaded - for some reason, Froala inputs a space and a new line (as can be seen when using HTML view mode, and highlighting the "empty" content).

Editor version.

4.2.1

OS.

Windows Server '19

Browser.

Edge (latest version)

@otkach94
Copy link

otkach94 commented Nov 6, 2024

If you have a feature suggestion, please add it on the Feature List instead.

I have a Froala control in my page that is potentially empty, or filled with previously saved content. I also have a dirty check in place to compare the before and after of the field when there are changes made.

Sample of content previously saved: <div style="font-size: 12px;">test123</div>

Expected behavior.

On page load, the data loaded into the Froala control should remain untouched, and pristine. It should still be: <div style="font-size: 12px;">test123</div>

Actual behavior.

After the page loads, Froala changes the content, making it dirty, and updates it as follows: <div style="font-size: 12px;"><div style="font-size: 12px;">test123</div></div>

Steps to reproduce the problem.

Load the page with previously saved data.

This also occurs when an empty control is loaded - for some reason, Froala inputs a space and a new line (as can be seen when using HTML view mode, and highlighting the "empty" content).

Editor version.

4.2.1

OS.

Windows Server '19

Browser.

Edge (latest version)

I have the same issue. Any update on it?

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