percussion / percussioncms

Percussion CMS - Content Management System
https://percussioncmshelp.intsof.com/percussioncms
Apache License 2.0
11 stars 9 forks source link

Rich Text Editor displays HTML it should not #1262

Closed rgarg24 closed 4 months ago

rgarg24 commented 4 months ago

Describe the bug

Rich Text Editor displays HTML it should not

To Reproduce

Steps to reproduce the behavior:

  1. Go to any page on your site.
  2. Go to Layout Tab and add Rich text widget.
  3. Now go to Content Tab and Edit that Rich text widget.
  4. On the rich text editor screen, if we go to Tools>Source code and type the html code containing a tag with data-pathitem attribute and then save it and open the editor again, then the html gets broken.

Expected behavior

The html should not get broken for any data we provide in rich text editor. This is happening only in the case of a tag when data-pathitem attribute is there for lot of html data.

rgarg24 commented 4 months ago

image

This is the html code in Tools>Source code

rgarg24 commented 4 months ago

This is what we get after saving and opening rich text editor again.

image