Adjust the height/width of the body part of Description field

rss

Posted by Sebastian Haugland - Mar 26 ’15 at 04:05

I want to change the height and width of the Description field to se more lines/text but only manage to adjust the "frame around" not the body itself.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 8 months 29 days
    #1 by Dmitry Kozlov Mar 27 ’15 at 02:36

    Hi,

    What type of the field you use: Rich Text, Enhanced Rich Text, or Plain Text?

  • Sebastian Haugland
    Sebastian Haugland
    Member
    Member for: 4 years 2 months 27 days
    #2 by Sebastian Haugland Mar 27 ’15 at 03:07

    Hi

    The Description filed is multiline Enhanced rich text (Rich text with pictures, tables, and hyperlinks)

     

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 8 months 29 days
    #3 by Dmitry Kozlov Mar 30 ’15 at 06:06

    [#2]: Hi,

    Please, assign a CSS class to your field, say, 'my-text', and define it in the CSS-editor following way:

    .my-text .ms-rtestate-write {
    	min-height: 400px !important;
    }
    
  • Sebastian Haugland
    Sebastian Haugland
    Member
    Member for: 4 years 2 months 27 days
    #4 by Sebastian Haugland Mar 30 ’15 at 05:45

    [#3]: Hi

    So sorry I was wrong - the Description Field is Rich text (Bold, italics, text alignment, hyperlinks)

    Tehn I need a different script than that the above (that did not work).

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 8 months 29 days
    #5 by Dmitry Kozlov Apr 1 ’15 at 05:44

    [#4]: So, please, assign a CSS class to the field ('my-text' in this sample) and insert the following code into the JavaScript editor of Forms Designer:

    $('.my-text iframe.ms-rtelong').attr('height', 200);
Displaying 1 to 5 of 5 messages