EllisLab text mark

This is an archived forum and may no longer be relevant. The active forums are here.

Advanced Search
Line Return <br/> issues with Rich Text Editor
Posted: 19 May 2012 11:36 AM
Joined: 2011-01-08
4 posts

I’m finding that the <br > tags are disappearing altogether from the template output. Not sure why.

 
Posted: 22 May 2012 04:43 PM   [ # 1 ]
Avatar
Joined: 2011-11-25
7174 posts

Hello CedarWaxwing,

Can you give me a little more information?

Can you tell me what setting you have set for that template?

Can you show me some example code?

Thank you,

 Signature 

ExpressionEngine Support

 
Posted: 23 May 2012 05:15 AM   [ # 2 ]
Joined: 2011-01-08
4 posts

HTML formatting is set to “Allow ALL HTML” and this is the code which is created by the rich text editor.

This is the address of the Apple headquarters in Cupertino, California.

1 Infinite Loop

Cupertino

CA 95014


The head of the document looks like this:

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">


I am not getting any <br > tags in the outputted template code. It works fine when I configure it to use WYGWAM.

I’ve just examined the database and discovered there are no <br > tags in the saved entry, but when I edit it, the <br > tags are back! I see what is happening now. Newline characters are being converted into <br > tags. Is this how it is supposed to work?

 
Posted: 24 May 2012 03:52 PM   [ # 3 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey CedarWaxwing,

Yes, that is the intended behavior. Newlines are < br >.

Cheers,

 Signature 

ExpressionEngine Support