Summernote Editor

Summernote Loses Format - Summernote Editor

Summernote Loses Format

by tessthepup » Tue Oct 21, 2025 7:29 pm

Good evening,

When I try to override the template file tpl_cm_pi_description.php with the code below the summernote formating is lost.

Just wondering if you have come across this?

Thanks

Mark
Screenshot 2025-10-21 202354.png
Screenshot 2025-10-21 202330.png

Code: Select all

<div class="<?= MODULE_CONTENT_PI_DESCRIPTION_CONTENT_WIDTH ?> cm-pi-description">
  <div class="card border border-1 border-secondary-subtle rounded-3 bg-white">
    <div class="card-body">
      <?= $product_description ?>
    </div>
  </div>
</div>

<?php
/*
  $Id$

  CE Phoenix, E-Commerce made Easy
  https://phoenixcart.org

  Copyright (c) 2021 Phoenix Cart

  Released under the GNU General Public License
*/
?>
User avatar
tessthepup
Certified Developer
Posts: 382
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Contact:

Re: Summernote Loses Format

by Pierre_P » Wed Oct 22, 2025 10:17 am

Hi Mark

I am unable to replicate this. I do see that some formatting is kept like the bolt parts.
Assuming the second screenshot is a different product_info module showing correct formatting?
Check if your code is not stripping html from the description.

Also when editing a product in admin, click on icon for "code View" and inspect the html on the description.
User avatar
Pierre_P
Contributor
Posts: 144
Joined: Fri Mar 12, 2021 5:06 am
Phoenix Version: v1.1.0.6
Contact: