Formatting in the WYSIWYG

ellen.donovan's Avatar

ellen.donovan

02 Sep, 2015 05:06 AM

Hello,

I have a WYSIWYG with 2 paragraph tags.
<p>BS Boise State University 1993</p>
<p>MBA Boise State University 2006</p>

It is not displaying the paragraphs or line breaks, etc.

Any thoughts?

 I checked in the Data Definition and it looks correct.

Thanks,
Ellen

  1. 1 Posted by Ryan Griffith on 03 Sep, 2015 12:24 PM

    Ryan Griffith's Avatar

    Hi Ellen,

    To confirm, are you not seeing the desired look when viewing those two paragraphs in the WYSIWYG's visual editor? If this is the case, do you have a CSS file applied at the Site or Global level that might be affecting the styling of the <p> tags?

    Also, if you could provide a screenshot of the WYSIWYG's visual editor that might help us identify the issue.

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by ellen.donovan on 03 Sep, 2015 04:14 PM

    ellen.donovan's Avatar

    I think it is a WYSIWYG issue? There are 2 paragraphs in the Cascade and when I publish the page it turns it into one paragraph and takes the line breaks out, etc

    Here is a sample page:
    Look at the paragraph that follows the CREDENTIALS: area.

    http://cmstst.slcc.edu/accounting/faculty1.aspx

  3. 3 Posted by ellen.donovan on 03 Sep, 2015 04:16 PM

    ellen.donovan's Avatar

    Here is the screenshot that you asked for.

  4. 4 Posted by Ryan Griffith on 03 Sep, 2015 04:49 PM

    Ryan Griffith's Avatar

    Thank you for following up, Ellen.

    Based on the screenshot, it looks like your Format that generates the markup needs tweaking to properly output the WYSIWYG content (ie retain the HTML tags). When you have a moment, please attach your Format and I'd be happy to help take a closer look.

    Please let me know if you have any questions.

    Thanks!

  5. 5 Posted by ellen.donovan on 03 Sep, 2015 04:52 PM

    ellen.donovan's Avatar

    Here is the format.

    Thanks!

  6. 6 Posted by Ryan Griffith on 03 Sep, 2015 05:02 PM

    Ryan Griffith's Avatar

    Thank you for providing your Format, Ellen. Looking it over, I am seeing the following:

    #if ( $credientials.value != "" )
                        <p class="titles">Credentials:</p>
                        <p class="cred">$_EscapeTool.xml($credentials.value)</p>
                        #end
    

    A couple of items to point out:

    • Testing for empty WYSIWYG is a little more involved since there can be either plain text or HTML.
    • You need to use the Serializer Tool to properly serialize and output the HTML tags within the content

    Check out this article for a demonstration on both in Velocity.

    Please let me know if you have any questions.

    Thanks!

  7. Tim closed this discussion on 22 Sep, 2015 04:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac