Mybb editor fix
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #5
RE: Mybb editor fix
I think MyBB didn't properly do the OOP model of the editor, so it was impossible to have more than one instance of it on a page.
Dunno if changed in 1.6 - will need to check.

Javascript Code
textInput.style.width = "99%";

I'm a little critical of relying on a 1% difference.  Is there a way to have some sort of containing div with a more fixed padding width?
You might also want to keep the height setting code in the Javascript, though I'm not sure if it really does much.
Haven't tried your code yet.

Although I don't like it, there's perhaps a reason why it's fixed width - for one, it ensures a minimum dimension so that the buttons don't go haywire.

If you just want it to fill 100% without supporting browser window resizes, it's probably better to do a HTML/CSS edit.

Thanks for sharing though - I also somewhat prefer a more dynamic width to the editor Smile

BTW, you moved the location of the video button - is that so it works better with smaller widths?


My Blog
03-28-2011 08:41 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Mybb editor fix - techu - 03-27-2011, 04:04 AM
RE: Mybb editor fix - RateU - 03-28-2011, 02:13 AM
RE: Mybb editor fix - techu - 03-28-2011, 03:24 AM
RE: Mybb editor fix - RateU - 03-28-2011, 04:30 AM
RE: Mybb editor fix - ZiNgA BuRgA - 03-28-2011 08:41 AM
RE: Mybb editor fix - techu - 03-28-2011, 01:14 PM
RE: Mybb editor fix - ZiNgA BuRgA - 03-28-2011, 09:51 PM
RE: Mybb editor fix - techu - 03-28-2011, 10:18 PM
RE: Mybb editor fix - Tomm - 03-29-2011, 08:32 AM

 Standard Tools
Forum Jump: