Paragraph formatting in WYSIWYG

Last post 10-05-2011, 10:02 AM by Chief_Apricot. 4 replies.
Sort Posts:
  •  09-29-2011, 3:33 PM 23723

    Paragraph formatting in WYSIWYG

    Could paragraph formatting ( HTML <p> tag) be included in the WYSIWYG editor? Using <br> is awkward for layout and bad coding practice.

    It could just be an option in the dropdown menu where you choose heading styles - include 'paragraph' under 'normal'. 

    Any chance?

    P.S. On this forum, extra line breaks get added into my posts when I submit. I always have to go back  and edit them out. Firefox 7 (and earlier versions).

  •  09-29-2011, 4:06 PM 23724 in reply to 23723

    Re: Paragraph formatting in WYSIWYG

    Paul, can you elaborate, I am not sure what you mean by "paragraph formatting ( HTML <p> tag) be included in the WYSIWYG editor" ?
    Dmitry Buterin, Chief Apricot
  •  09-30-2011, 5:31 PM 23729 in reply to 23724

    Re: Paragraph formatting in WYSIWYG

    Sure. Currently, when you hit return in the WYSIWYG window, it just creates a <br> tag. There is no way to create actual paragraphs using the <p> tag, without going into the HTML (which seems like it shouldn't be necessary for a basic formatting function).

     

    So It would be helpful if we could put it in 'paragraph' mode, so that hitting return ends one paragraph and starts a new one. If you use Dreamweaver, you can see this function in the 'Format' menu which allows you to choose None/Paragraph/Heading 1/Heading 2 etc.

     

     

  •  10-03-2011, 8:32 AM 23738 in reply to 23729

    Re: Paragraph formatting in WYSIWYG

    You are right, this is very strange, I was quite sure that Enter creates a paragraph! I will consult with our developers and get back to you. 
    Dmitry Buterin, Chief Apricot
  •  10-05-2011, 10:02 AM 23754 in reply to 23723

    Re: Paragraph formatting in WYSIWYG

    Paul,

     

    here's the deal:

    Our editor relies on each browser built-in editing component for some low-level behavior - and this behavior differs between browser and also whether current line already has a paragraph tag or not. Unfortunately it's not something we can easily change - but we will be investigating options to work around this.

    In a nutshell, if you already have a paragraph tag in your html code (current line), Enter will create new paragraph and Shift+Enter will create a break. Except for Safari - Shift+Enter will create new paragraph as well.

    If you do not have a paragraph tag yet, the behavior is event more varied:

    • FF: Enter/Shift+Enter will create <br>
    • Chrome: Enter will create new <div>, Shift+Enter will create <br>
    • IE: Enter will create new paragraph/Shift+Enter will create <br>
    • Safari: Enter/Shift+Enter will create new div

      We will also consider creating a short help page to document this.

      In the meantime, as long as your current page has a paragraph tag to start with (add it via HTML for now), you will be able to add new paragraphs via Enter. 


      Dmitry Buterin, Chief Apricot
    View as RSS news feed in XML
    Membership Software - Wild Apricot