A custom Lightning email template may include <br> tags at the top of the template. When a user presses Enter/Return while editing the template, the cursor inserts a new line and jumps down below the existing <br> tags instead of behaving as expected.
This article explains how to resolve the cursor jumping below existing line breaks when editing a Lightning email template that starts with <br> tags.
The Lightning email composer places the <br> tags inside a <div> element. When the user presses Enter/Return, a new <div> is created, causing the cursor to jump down below the existing line breaks.
Either remove the <br> tags from the template, or replace them with empty <div> tags, as shown below:
<div> </div> <div> </div> <div> </div>
This code replaces each line break with an empty <div> element containing a non-breaking space, which prevents the cursor from jumping down when the user presses Enter/Return.
004333417

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.