markovo Posted February 19 Share Posted February 19 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? Link to comment Share on other sites More sharing options...
ComGrafPL Posted February 19 Share Posted February 19 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? Expand Try also with that in both files: forced_root_block: '', force_p_newlines: false, force_br_newlines: true, Clear cache. 1 Link to comment Share on other sites More sharing options...
markovo Posted February 19 Author Share Posted February 19 I added that in both files, still no change. It keeps adding <p></p>. Link to comment Share on other sites More sharing options...
markovo Posted February 20 Author Share Posted February 20 When I disabled HTML Purifier Library the <p> tags stopped adding. Is there a way to setup HTML Purifier to not do this? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now