Jump to content

How to fix the text wrapping issue in Firefox 36 and above with Invision Power Board 3.4.7


Steve

Recommended Posts

In Firefox 36 and above, when you're typing out a post, when you reach the right edge of the posting box, the text does not wrap to the next line automatically. Instead, a horizontal scrollbar will appear and your typing will continue on to the right. This is caused by Firefox 36 and above respecting a piece of code that was previously ignored.

 

To fix it, go into the AdminCP and go to Look & Feel. Click on the affected skin, then click on CSS. Select ipb_ckeditor.css from the choices on the left and add this piece of code at the bottom of the file and save it: -

.cke_skin_ips textarea {
    white-space: pre-wrap !important;
}
.cke_skin_ips textarea.cke_source {
    white-space: pre-wrap !important;
}
In the original code, the 2 lines that caused this issue contain the word "wrap", which means that the user has to manually enter in line breaks. The code above simply replaces the 2 affected lines using "pre-wrap", which will insert the line breaks automatically as you reach the right edge of the posting box.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...