Extending the size of the Rich Text Editor


So an issue I’ve heard many times from end users is that the rich text editor is way too small to do verbose content. Below you’ll find some CSS which increases the size of the Rich Text Editor and the list form in general to be both wider and in the case of the RTE, taller as well. In practice with the below changes about one-third of a page will be editable on-screen at any one time.  This is for SharePoint 2007, and can be added as a new .css to your master page. Or inline to an individual page via the content editor web part.
<style type=”text/css”>
/* widens the RTE field control in forms*/
#onetIDListForm, #onetIDListForm .ms-formbody,#onetIDListForm iframe[title=”Rich Text Editor”]{
width:100% !important;
}
/*makes RTE control taller*/
#onetIDListForm iframe[title=”Rich Text Editor”]
{
height:300px !important;
}
/* makes RTE toolbar width match control width */
.ms-long
{
width:100% !important
}
/*removes display of field label above field control and border around field control*/
DIV.ms-formfieldlabelcontainer SPAN.ms-formfieldlabel
{
display:none;
}
.ms-formfieldvaluecontainer
{
border:none !important;
}
/*widens form table altogether with scaling for different resolutions*/
.ms-formtable
{
min-width:900px;
max-width:100%;
}
</style>
Note: for IE7 to show the new width properly you’ll need to set a hard width (if you do min/max-width properties it will only do min-width). So this segment:
#onetIDListForm, #onetIDListForm .ms-formbody,#onetIDListForm iframe[title=”Rich Text Editor”]{
width:100% !important;
}
Would need to change width to: width:900px !important; instead of 100% due to issues with IE7 and CSS.

– Maarten

  1. No comments yet.
(will not be published)


%d bloggers like this: