Supprimer un message
zion
Sauf que même sans espace, tu passes parfois à la ligne vu que ton mot dépasse la ligne, donc non monsieur ça suffit pas
(et le code est mauvais et vieux si y a mieux je suis preneur
)
La fonction ( BBEditorAdaptRows )
Et voila, stout, AElement étant mon textarea
![:ocube: :ocube:](images/smileys/ocube.gif)
![:ocube: :ocube:](images/smileys/ocube.gif)
La fonction ( BBEditorAdaptRows )
function BBEditorAdaptRows(AElement)
{
var text = AElement.value;
var split = text.split("\n");
if (split.length + 1 > AElement.rows)
AElement.rows = split.length + 1;
}
{
var text = AElement.value;
var split = text.split("\n");
if (split.length + 1 > AElement.rows)
AElement.rows = split.length + 1;
}
Et voila, stout, AElement étant mon textarea
![:ocube: :ocube:](images/smileys/ocube.gif)