MyBB Tutorials

Tutorial Fix Editor & TextArea

Submitted by linkzy, , Thread ID: 471

Thread Closed
linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
20-01-2015, 12:14 PM
#1
If you happen to have your editor like this one above there is a fix for it :
1- Open (jscripts/editor.js)
- Find:
PHP Code:
// Determine the overall height and width - messy, but works
        
oldTextarea.getDimensions().width+"px";
        if(!
|| parseInt(w) < 400)
        {
            
"400px";
        }
        if(
this.options && this.options.height)
        {
            
this.options.height;
        }
        else if(
oldTextarea.offsetHeight)
        {
            
oldTextarea.offsetHeight+"px";
        }
        else if(
oldTextarea.clientHeight)
        {
            
oldTextarea.clientHeight+"px";
        }
        else if(
oldTextarea.style.height)
        {
            
oldTextarea.style.height;
        }
        else
        {
            
"400px";
        }
        
this.editor.style.width w;
        
this.editor.style.height h
- Replace it with:

PHP Code:
// Determine the overall height and width - messy, but works
        
"550px";
        
"300px";
        
this.editor.style.width w;
        
this.editor.style.height h

- Find:

PHP Code:
textInput.style.height parseInt(areaContainer.style.height)+"px";
        
textInput.style.width parseInt(areaContainer.style.width)+"px"
- Replace it with:
PHP Code:
textInput.style.height "229px";
        
textInput.style.width "544px"


You can play around with the height and width to your liking/size.

Well i am talking about fixing this -

[Image: YG5F4Ts.png]
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Tutorial Fix Editor & TextArea

JumpingJack
Member
Level:
0
Reputation:
9
Posts:
141
Likes:
6
Credits:
6
28-09-2015, 09:44 AM
#2
Ohh thats i am searching for it.
thank for it.

RE: Tutorial Fix Editor & TextArea

YihuYon
Korekara Min na de Mitchek Sel do Savago
Level:
0
Reputation:
0
Posts:
205
Likes:
10
Credits:
18
13-12-2016, 03:47 PM
#3
Thanks linkzy for this. Great share. I am testing it out on local now. Working fine.

RE: Tutorial Fix Editor & TextArea

tronturbo
Banned
Level:
0
Reputation:
0
Posts:
9
Likes:
0
Credits:
0
21-12-2016, 06:08 PM
#4
That;s a nice tutorial.

Users browsing this thread: 1 Guest(s)