Method Community

 

Comments Field

Last post 11-19-2013 11:46 AM by Method_Jonathan. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-19-2013 4:54 AM

    Comments Field

    Hello, I have a commets field into a activity grid, when I have only 1 line of comments, method show me 3 lines (1 blank, 1 with comment, 1 blank) but comment have only one line of few characters.


  • 11-19-2013 11:46 AM In reply to

    Re: Comments Field

    Hi Francisco,

    Activity comments within Method are stored as HTML text.  This allows users to change the formatting of comments (e.g. font colour & size, text alignment, etc).  

    The HTML editor used to enter activity comments automatically adds HTML paragraph tags to the text.  Behind the scenes, a comment may look like this:

    <p>This is a comment</p>

    When displaying this, browsers will automatically add space before and after each <p> element.  As a result, the activities grid renders comments with additional space before and after the comment, which is why a single line comment appears as 3 lines.


    Cheers,

    Jonathan

    Jonathan Gamble
    Product Manager
    Method Integration Inc.
    Local and overseas: 416.847.0400
    Toll Free: 1.888.925.6238
    Fax: 416.640.6027
    E-mail: j.gamble@method.me
Page 1 of 1 (2 items)