Under Community Review

Prevent adding

tags in rich text field when used new sites9.5 /UI

While using new sites9.5 ui, when we enter a line in rich text field, it adds <p> tags around the text after saving. And that mess up the presentation on page.
We had similar problem in tridion 2013 ui which was fixed by updating xslt. But that xslt change is not applicable to new ui.

XSLT filtering is not yet available for the XS UI.
https://docs.rws.com/832080/768986/tridion-sites-9-6-experience-space-help/information-for-users-of-the-------------classic-user-interfaces
The following features that are available in the rich text format area in the Classic user interfaces are not (yet) available in Experience Space:
...
* Applying the custom Filtering XSLT defined for a format area; currently such XSLT is applied only to the Classic user interfaces.

 

Could you please enhance the new ui to fix the issue.

Parents
  • I would say that an (X)HTML <p> (paragraph) tag is the best thing you can use to semantically represent that the text should not keep flowing, but start a new line/paragraph.

    So, you could try to suppress the use of this tag, but you could also leverage it and ensure it renders as you would expect (e.g. in your CSS). If you *really* want to replace <p> tags with other HTML markup, you could consider doing the replacement in your templates/views.

Comment
  • I would say that an (X)HTML <p> (paragraph) tag is the best thing you can use to semantically represent that the text should not keep flowing, but start a new line/paragraph.

    So, you could try to suppress the use of this tag, but you could also leverage it and ensure it renders as you would expect (e.g. in your CSS). If you *really* want to replace <p> tags with other HTML markup, you could consider doing the replacement in your templates/views.

Children
No Data