Jump to content

Presta 8.2 is adding empty <p> on product save.


markovo

Recommended Posts

Hello,

When saving a product with a description, tinyMCE is adding <p></p> on every line. In addition to adding <p></p> on every new line, tinyMCE is adding <p></p> after every <p></p> on every product save (see attachment).

This happens only in the Description tab. Not in the Summary.

So if I save a product 5 times I will have 5 more <p></p>. And so on.

I tried adding:

force_p_newlines: false, force_br_newlines: true,

In these 2 files:

admin/themes/new-theme/js/components/tinymce-editor.js

and

js/admin/tinymce.inc.js

But nothing changed. Any suggestions?

Screenshot_2.png

Link to comment
Share on other sites

  On 2/19/2025 at 8:58 AM, markovo said:

Hello,

When saving a product with a description, tinyMCE is adding <p></p> on every line. In addition to adding <p></p> on every new line, tinyMCE is adding <p></p> after every <p></p> on every product save (see attachment).

This happens only in the Description tab. Not in the Summary.

So if I save a product 5 times I will have 5 more <p></p>. And so on.

I tried adding:

force_p_newlines: false, force_br_newlines: true,

In these 2 files:

admin/themes/new-theme/js/components/tinymce-editor.js

and

js/admin/tinymce.inc.js

But nothing changed. Any suggestions?

Screenshot_2.png

Expand  

Try also with that in both files:

forced_root_block: '',
force_p_newlines: false,
force_br_newlines: true,

Clear cache.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...