13.03.2011: Updated the code and made it easier to use by referring jQuery and jQueryUI from Google.
I got this request from Larry:
Maybe this time I can post something we can get to work. I have been trying to peice together several scripts, including yours to make the multiple line text fields expandable. I found a workiong script but it only worked on plain text. I am trying to modify it to work on rich text. When i add your script for fieldinternalname I can at least see the image under the rich text box, but it does not work. using the new script I can not get the plain text to work. this is the link to the jquery plugin for textarea resizer…
The plain text multi lines are no problem, but the rich text and enhanced rich text ones are a bit tricky. They are made up of <IFRAME>’s, and the input does not go in a <textarea> tag.
I have made this solution based on the jQuery UI “Interaction” Resizable.
Internet Explorer 8:
Add a CEWP below your NewForm and EditForm and add this code:
Get the code here
Ask if anything is unclear.
14 thoughts on “Add resize handle to multiline text field (plain text, rich text and enhanced rich text)”
I knew you would be the one to figure it out. You are the master. Great job!
Is there a way to set a default size of a field or multiple fields? Using another script to prepopulate the rich box I find the table I populate seems hard to read because of the limited space. Once the field is resized larger it looks fine. can this value be set or predefined?
This code sets a field with FieldInternalName of “EnhancedRichText” to height=500px and width=600px.
Hi Alex. How can I use it on SP2013?
Try this code – replace “MultilineRich” with your field name and adjust the size to your liking.
I want to be able to resize a multivalue lookup field.
Look at this one: Arrange multiple selection lookup vertically
Thanks for that amazing post……… Can I set the default font size in this RTE to be more that what it is now……… overriding the style (.rtelong) does not work….. for font formatting alone……… other properties like width, height etc can be formatted……….
Thanks a lot in advance…………… quick reply appreciated………..
Look at this one: Get or Set value for SharePoint field in NewForm, EditForm and DispForm (Get only in DispForm)
Use it to set the default size like this:
The FieldInternalName of “my” field is “MultiLineRich”.
thank you for all this useful tutorials an scripts at first. I tried out the Resize script with a MOSS 2007 German but it does not work. No error message in the IE status bar.
This ist my CEWP:
padding:3 10 10 6;
border-right:1px gray dotted;
border-bottom:1px gray dotted;
Do you have any idea what mistake I am doing?
sorry this ist the rest CEWP:
To the next time you want to post code: How to post code in comments
I have made some changes in the code – see if that helps, and ensure your CEWP is placed below the form.