Thread

This is an archived forum and the content is probably no longer be relevant, but is provided here for posterity.

The active forums are here.

Line Return <br/> issues with Rich Text Editor

May 19, 2012 11:36am

Subscribe [2]
  • #1 / May 19, 2012 11:36am

    CedarWaxwing

    4 posts

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

  • #2 / May 22, 2012 4:43pm

    Shane Eckert's avatar

    Shane Eckert

    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,

  • #3 / May 23, 2012 5:15am

    CedarWaxwing

    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?

  • #4 / May 24, 2012 3:52pm

    Shane Eckert's avatar

    Shane Eckert

    7174 posts

    Hey CedarWaxwing,

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

    Cheers,

ExpressionEngine News

#eecms, #events, #releases