HTML Editor pre tag problem

Last post 07-01-2009 5:55 AM by xmen. 4 replies.

Sort Posts:

  • HTML Editor pre tag problem

    06-30-2009, 1:48 PM
    • Member
      78 point Member
    • xmen
    • Member since 11-06-2008, 9:46 AM
    • Home
    • Posts 146
    Whenever I write html in HTML Editor like this
    Line 1
    Line 2
    Line 3
    
    then if I select design mode, it removes the new line char, now it will appear like this
    Line 1 Line 2 Line 3 
    so is there any way to keep the pre tag content in original look ?

    C# Programmer
  • Re: HTML Editor pre tag problem

    06-30-2009, 9:01 PM
    • Contributor
      2,122 point Contributor
    • obout_teo
    • Member since 05-22-2009, 1:25 AM
    • Posts 356

    I see you typed this text in "HTML text" mode of editor.

    Why don't you type the following?

    Line 1<br />
    Line 2<br />
    Line 3<br />

    <pre> tag is not currently supported properly.

    Don't forget to mark this post as "answer", if it helped you...
  • Re: HTML Editor pre tag problem

    06-30-2009, 9:54 PM
    • Member
      78 point Member
    • xmen
    • Member since 11-06-2008, 9:46 AM
    • Home
    • Posts 146

    Yes I can, but there can be big chunk of code. I can also make a program that can put <br/> at the end of each line. But I can, not all users/clients can or want to put their time in it.

    pre tag suppose to keep the actual format.


    It works good, If I do not press 'Design' mode button.


    C# Programmer
  • Re: HTML Editor pre tag problem

    07-01-2009, 1:51 AM
    • Contributor
      2,122 point Contributor
    • obout_teo
    • Member since 05-22-2009, 1:25 AM
    • Posts 356

    Indeed, "Design" mode is the main mode of Editor.
    Users should type text, style it, insert links and images in this mode.
    "HTML text" mode is mostly for viewing the result HTML code.

    If you type in "Design" mode:

    line1
    line2
    line3

    Than you can see in "HTML text" mode :

    line1<br />
    line2<br />
    line3

    Don't forget to mark this post as "answer", if it helped you...
  • Re: HTML Editor pre tag problem

    07-01-2009, 5:55 AM
    • Member
      78 point Member
    • xmen
    • Member since 11-06-2008, 9:46 AM
    • Home
    • Posts 146

    Yes, you're right teo. But that thing is buggy. I've html code so it will be a bit complicated to first paste all html code then change pre tag code in design mode.


    C# Programmer
Page 1 of 1 (5 items)