<?php
// 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;
<?php
// Determine the overall height and width - messy, but works
w = "733px";
h = "255px";
this.editor.style.width = w;
this.editor.style.height = h;
<?php
textInput.style.height = parseInt(areaContainer.style.height)+"px";
textInput.style.width = parseInt(areaContainer.style.width)+"px";
<?php
textInput.style.height = "180px";
textInput.style.width = "722px";
(12 Oct, 2012, 9:45 am)bender escribió: prueba con esto http://www.mybb-es.com/hilo-1-6-2-fix-editor-textarea
(13 Oct, 2012, 9:22 am)Ocras escribió: Yo hice lo del tutorial ese y se soluciono. Solo tienes que jugar con las medidas
Busca:
Código PHP:<?php
// 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;
<?php
// Determine the overall height and width - messy, but works
w = "733px";
h = "255px";
this.editor.style.width = w;
this.editor.style.height = h;
<?php
textInput.style.height = parseInt(areaContainer.style.height)+"px";
textInput.style.width = parseInt(areaContainer.style.width)+"px";
<?php
textInput.style.height = "180px";
textInput.style.width = "722px";