Troubleshooting issues with a Multi-Line Text field in the Experience Editor


Summary

This article provides troubleshooting scenarios for the following issues that might occur with a Multi-Line Text field in the Experience Editor:

Multi-Line Text field contains paragraph tags after saving changes in the Experience Editor

Description

If a text is added to an empty Multi-Line Text field in the Experience Editor, lines might be wrapped in <p> tags after saving the changes.

Solution

Multi-Line Text field is rendered in one line when using MVC rendering

Description

A Multi-Line Text field might be rendered in one line when using the following Sitecore MVC helper:

@Html.Sitecore().Field("FieldName")

The issue does not affect Sitecore XP 9.0.0 and later.

Solution

To resolve the issue, download and install the patch compatible with the affected product version found on this page: https://github.com/SitecoreSupport/Sitecore.Support.95002/releases.

Two line breaks are added when pressing the Enter key in a Multi-Line Text field in the Experience Editor

Description

Two line breaks (<br> tags) might be added instead of one when pressing the Enter key in a Multi-Line Text field while editing it in the Experience Editor.

The issue does not affect Sitecore XP 9.0.0 and later.

Solution

To resolve the issue, download and install the patch compatible with the affected product version found on this page: https://github.com/SitecoreSupport/Sitecore.Support.103584/releases.

Multi-Line Text field is trimmed after saving changes in the Experience Editor

Description

If a Multi-Line Text field has several lines, some of them might be trimmed when saving changes in the Experience Editor.

The issue does not affect Sitecore XP 9.0.0 and later.

Solution

To resolve the issue, download and install the patch compatible with the affected product version found on this page: https://github.com/SitecoreSupport/Sitecore.Support.101295/releases.

Multi-Line Text field is saved without line breaks in the Experience Editor

Description

A Multi-Line Text field might be saved without line breaks after it has been edited using the Field Editor dialog box in the Experience Editor.

The issue does not affect Sitecore XP 8.2.1 and later.

Solution

To resolve the issue, download and install the patch compatible with the affected product version found on this page: https://github.com/SitecoreSupport/Sitecore.Support.93260/releases.

Only two lines are saved in a Multi-Line Text field in the Experience Editor

Description

If more than two lines are added to a Multi-Line Text field in the Experience Editor, only two lines might be saved.

The issue does not affect Sitecore XP 8.2.0 and later.

Solution

To resolve the issue, download and install the patch compatible with the affected product version found on this page: https://github.com/SitecoreSupport/Sitecore.Support.106803/releases.

The Rich Text Editor removes the first <p> tag in the Experience Editor

Description

Each opening of the Rich Text Editor in the Experience Editor might cause the first <p> tag removal after accepting the changes.

For example:

Record1
<p>Record2</p>
<p>Record3</p>

instead of

<p>Record1</p>
<p>Record2</p>
<p>Record3</p>

The issue does not affect Sitecore XP 10.0.0 and later.

Solution

To resolve the issue, consider one of the following options: