I am sure this is in the manual somewhere but for the life of me I can't find it. I want to change the textarea width-- that is, the white region you enter text into. I do not want to change the width of the entire editor-- the width of grey region(toolbars, etc) should remain constant. I think this is a col=XX for some textarea. Please help. Thank you.
Sun, 09/11/2011 - 17:51
#1

Re: configure textarea width
//Add resize functionality $(window).resize(function() { //Get height var height = $(window).height(); //Get width var width = $(window).width(); //If no change then don't update... if (oldHeight != height || oldWidth != width) { //Set width of the reviewTitle $('#reviewTitle').css('width', width); //Set width of topSpace (the editor-toolbar) $('#topSpace').css('width', width); //Set width and height og the reviewData $('#reviewData').css({ width: width, height: height - <%= offsetY * 3 + titleHeight + toolbarHeight %> }); //Update buffered values oldHeight = height; oldWidth = width; } });I have a 'reviewTitle' which contains the title of the document, 'topSpace' which has the toolbar and 'reviewData' which contains the main document.
I just set the size on the css with the desired size on the resize event...
Maybe you can use this...?