Announcement

Collapse
No announcement yet.

How to increase the default height of vB5 CKEditor

Collapse
X
Collapse
First Prev Next Last
  • Filter
  • Time
  • Show
Clear All
new posts

    Official - Free How to increase the default height of vB5 CKEditor

    The default height of vB5 CKEditor is 70px. That may be too short for some even if the editor "autogrows" when you get to the bottom and press Enter.

    To increase it without modifying any CKEditor configuration, you just add this simple custom CSS in css_additional.css template in AdminCP or in Sitebuilder > Style > CSS Editor.

    Code:
    .b-editor .cke_contents {
        min-height: 100px;
    }

    #2
    Thank you!

    Comment


      #3
      Nice, thanks! I've just edited with no fuss or mess. Great work

      Comment


        #4
        Very nice. I didn't know that I needed this until today.

        Comment


          #5
          FWIW, this bit of CSS didn't work for me until after I put " !important " after the attribute value. I've been trying to change the height of that editor text box for hours and I appreciate the info.

          Comment


            #6
            Make sure that you are using min-height and not height. If you use height, you need !important but for min-height, you don't unless you have other min-height defined somewhere else that overrides it.

            Comment


              #7
              In CSS, min-height always wins over height even if height has !important as long as the min-height value is greater than height.

              Comment


                #8
                I used min-height and had to use ' !important '. Perhaps the theme I'm using has some CSS that conflicted. I started with a canned theme and modified it from there.

                Comment


                • glennrocksvb
                  glennrocksvb commented
                  Editing a comment
                  That may explain why !important is needed in your case.

                #9
                This was perfect. I was so used to vB4 (usually) keeping the editor at the same size I had it previously, so the small vB5 size was a little frustrating. This worked out nicely as a quick fix. Thanks!

                Comment


                  #10
                  Thank you so much

                  Comment

                  Working...
                  X