Thread Rating:
  • 15 Vote(s) - 4.07 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[1.6.x] Fix Editor & TextArea
#1
Information 
If your like me you'd hate for your forums to not look half way decent. If you get sick and tired of looking at this, with the text area all hanging out of the editor, then scroll down.

[Image: 90djtl.png]

Then follow these steps below.

Open (jscripts/editor.js)

Find:
		// Determine the overall height and width - messy, but works
		w = oldTextarea.getDimensions().width+"px";
		if(!w || parseInt(w) < 400)
		{
			w = "400px";
		}
		if(this.options && this.options.height)
		{
			h = this.options.height;
		}
		else if(oldTextarea.offsetHeight)
		{
			h = oldTextarea.offsetHeight+"px";
		}
		else if(oldTextarea.clientHeight)
		{
			h = oldTextarea.clientHeight+"px";
		}
		else if(oldTextarea.style.height)
		{
			h = oldTextarea.style.height;
		}
		else
		{
			h = "400px";
		}
		this.editor.style.width = w;
		this.editor.style.height = h;
Replace With:
		// Determine the overall height and width - messy, but works
		w = "550px";
		h = "300px";
		this.editor.style.width = w;
		this.editor.style.height = h;

Find:
		textInput.style.height = parseInt(areaContainer.style.height)+"px";
		textInput.style.width = parseInt(areaContainer.style.width)+"px";
Replace With:
		textInput.style.height = "229px";
		textInput.style.width = "544px";

And you should end up with a fixed editor and textarea that looks like this.

[Image: 141qyr7.png]

You can play around with the height and width to your liking/size. This works and looks the same on IE, Firefox, and Chrome.

Still having problems applying the patch? Download a original copy of editor.js with this patch applied below.

If you like push the [Image: postbit_reputation.gif] button!
-Warmonger

UPDATED FOR 1.6.3!


Attached Files
.js   editor.js (Size: 37.17 KB / Downloads: 1,385)
2+ Years Cisco Networking
There's no place like 127.0.0.1 except for ::1
<snip - annoying animated thing>
Don't bother, It's inside your monitor!
Reply


Messages In This Thread
[1.6.x] Fix Editor & TextArea - by Warmonger - 08-06-2010, 01:11 PM
RE: Fix Editor & TextArea - by Solstice - 08-07-2010, 03:45 PM
RE: Fix Editor & TextArea - by Starnova - 08-07-2010, 08:26 PM
RE: Fix Editor & TextArea - by Janota - 08-07-2010, 09:08 PM
RE: Fix Editor & TextArea - by kjaonline - 08-07-2010, 11:00 PM
RE: Fix Editor & TextArea - by Scoutie44 - 08-08-2010, 05:41 AM
RE: Fix Editor & TextArea - by Warmonger - 08-08-2010, 07:34 AM
RE: Fix Editor & TextArea - by Janota - 08-09-2010, 11:21 AM
RE: Fix Editor & TextArea - by Alan S. - 08-12-2010, 12:16 AM
RE: Fix Editor & TextArea - by andrewjs18 - 08-12-2010, 03:58 AM
RE: Fix Editor & TextArea - by Alan S. - 08-12-2010, 11:04 PM
RE: Fix Editor & TextArea - by Warmonger - 08-12-2010, 11:09 PM
RE: Fix Editor & TextArea - by Alan S. - 08-12-2010, 11:10 PM
RE: Fix Editor & TextArea - by Gunner10 - 08-09-2010, 05:15 AM
RE: Fix Editor & TextArea - by MadDogTen - 08-09-2010, 11:30 AM
RE: Fix Editor & TextArea - by andrewjs18 - 08-11-2010, 11:33 PM
RE: Fix Editor & TextArea - by Gunner10 - 08-12-2010, 02:32 AM
RE: Fix Editor & TextArea - by Warmonger - 08-12-2010, 10:53 PM
RE: Fix Editor & TextArea - by kurniawan - 08-14-2010, 09:34 PM
RE: Fix Editor & TextArea - by Janota - 08-14-2010, 10:03 PM
RE: Fix Editor & TextArea - by Warmonger - 08-15-2010, 06:38 AM
RE: Fix Editor & TextArea - by Janota - 08-16-2010, 11:22 AM
RE: Fix Editor & TextArea - by The Grinch - 08-14-2010, 11:36 PM
RE: Fix Editor & TextArea - by majik - 08-15-2010, 07:20 AM
RE: Fix Editor & TextArea - by Warmonger - 08-15-2010, 07:27 AM
RE: Fix Editor & TextArea - by StormIsComing - 08-16-2010, 10:31 AM
RE: Fix Editor & TextArea - by Warmonger - 08-17-2010, 01:47 AM
RE: Fix Editor & TextArea - by Alex H. - 08-30-2010, 04:15 PM
RE: Fix Editor & TextArea - by Janota - 08-30-2010, 04:18 PM
RE: Fix Editor & TextArea - by Alex H. - 08-30-2010, 04:37 PM
RE: Fix Editor & TextArea - by Warmonger - 09-30-2010, 08:02 AM
RE: Fix Editor & TextArea - by Janota - 08-30-2010, 04:48 PM
RE: [1.6] Fix Editor & TextArea - by littleg - 10-02-2010, 06:15 PM
RE: [1.6] Fix Editor & TextArea - by Salih I - 10-03-2010, 02:08 PM
RE: [1.6] Fix Editor & TextArea - by littleg - 10-03-2010, 06:57 PM
RE: [1.6] Fix Editor & TextArea - by ghoku - 10-04-2010, 05:24 PM
RE: [1.6] Fix Editor & TextArea - by apo - 10-25-2010, 03:41 PM
RE: [1.6] Fix Editor & TextArea - by Monaco - 02-24-2011, 02:01 PM
RE: [1.6] Fix Editor & TextArea - by YamatoKira - 08-30-2011, 11:38 AM
RE: [1.6] Fix Editor & TextArea - by shoaib - 02-25-2011, 11:18 AM
RE: [1.6] Fix Editor & TextArea - by Warmonger - 03-03-2011, 02:36 AM
RE: [1.6] Fix Editor & TextArea - by shoaib - 03-03-2011, 06:24 AM
RE: [1.6.2] Fix Editor & TextArea - by jason_lbg - 03-03-2011, 05:52 PM
RE: [1.6.2] Fix Editor & TextArea - by NNT_ - 03-09-2011, 05:48 AM
RE: [1.6.2] Fix Editor & TextArea - by jason_lbg - 03-09-2011, 04:22 PM
RE: [1.6.2] Fix Editor & TextArea - by NNT_ - 03-15-2011, 02:44 PM
RE: [1.6.2] Fix Editor & TextArea - by MarHaj - 04-25-2011, 08:40 AM
RE: [1.6.2] Fix Editor & TextArea - by jameel225 - 04-01-2011, 06:41 AM
RE: [1.6.2] Fix Editor & TextArea - by amir - 06-12-2011, 06:35 AM
RE: [1.6.2] Fix Editor & TextArea - by Sketch - 07-12-2011, 03:10 PM
RE: [1.6.x] Fix Editor & TextArea - by fachrils - 08-17-2011, 01:59 AM
RE: [1.6.x] Fix Editor & TextArea - by kenboldt - 08-31-2011, 12:58 PM
RE: [1.6.x] Fix Editor & TextArea - by GunnerAIO - 05-18-2012, 06:40 PM
RE: [1.6.x] Fix Editor & TextArea - by RBlack912 - 05-21-2012, 02:40 PM
RE: [1.6.x] Fix Editor & TextArea - by one.relic - 06-12-2012, 05:07 AM
RE: [1.6.x] Fix Editor & TextArea - by NNT_ - 08-13-2012, 08:12 AM
RE: [1.6.x] Fix Editor & TextArea - by z28 - 09-03-2012, 08:06 PM
RE: [1.6.x] Fix Editor & TextArea - by Altered - 11-18-2012, 12:41 AM
RE: [1.6.x] Fix Editor & TextArea - by Nickd1066 - 01-19-2013, 03:40 PM
RE: [1.6.x] Fix Editor & TextArea - by Adobe - 01-21-2013, 03:21 AM
RE: [1.6.x] Fix Editor & TextArea - by Nickd1066 - 02-23-2013, 05:49 PM
RE: [1.6.x] Fix Editor & TextArea - by 75Alex - 02-24-2013, 11:54 AM
RE: [1.6.x] Fix Editor & TextArea - by 75Alex - 02-25-2013, 05:29 PM
RE: [1.6.x] Fix Editor & TextArea - by Cooli - 03-16-2013, 06:24 PM
RE: [1.6.x] Fix Editor & TextArea - by .Joe - 04-10-2013, 08:25 PM
RE: [1.6.x] Fix Editor & TextArea - by Wolfseye - 04-17-2013, 04:09 PM
RE: [1.6.x] Fix Editor & TextArea - by Larathiel - 06-06-2013, 05:26 PM
RE: [1.6.x] Fix Editor & TextArea - by effone - 08-11-2013, 11:28 AM
RE: [1.6.x] Fix Editor & TextArea - by Arszilla - 11-12-2013, 08:06 PM
RE: [1.6.x] Fix Editor & TextArea - by Meadp - 11-12-2013, 11:28 PM
RE: [1.6.x] Fix Editor & TextArea - by Arszilla - 11-14-2013, 05:40 PM
RE: [1.6.x] Fix Editor & TextArea - by Meadp - 11-15-2013, 11:43 AM
RE: [1.6.x] Fix Editor & TextArea - by jason_lbg - 12-09-2013, 07:12 AM
RE: [1.6.x] Fix Editor & TextArea - by effone - 12-09-2013, 08:25 AM
RE: [1.6.x] Fix Editor & TextArea - by marcus123 - 12-18-2013, 05:54 PM
RE: [1.6.x] Fix Editor & TextArea - by MuslimBB - 02-15-2014, 12:51 AM
RE: [1.6.x] Fix Editor & TextArea - by sarang2502 - 03-02-2014, 09:51 PM
RE: [1.6.x] Fix Editor & TextArea - by marcus123 - 12-21-2013, 01:45 PM
RE: [1.6.x] Fix Editor & TextArea - by hkkp - 03-22-2014, 10:37 PM
RE: [1.6.x] Fix Editor & TextArea - by Selvester - 04-15-2014, 06:25 AM
RE: [1.6.x] Fix Editor & TextArea - by Nordic - 07-15-2014, 08:06 PM
RE: [1.6.x] Fix Editor & TextArea - by Adzdon - 09-12-2014, 03:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)