Oppss.... you are too fast in fixing issues.
Thanks.
Alex
2013/12/7 Thomas Tanon <thomaspt(a)hotmail.fr>
The issue with the body textarea size is already
fixed. The size used is
now the one set in Editing/Editor preferences. So I don’t see the point of
this script.
Thomas
Le 7 déc. 2013 à 17:53, Alex Brollo <alex.brollo(a)gmail.com> a écrit :
I simply put it into my common.js user
page<https://it.wikisource.org/wiki/Utente:Alex_brollo/common.js>js>,
and it runs.
After some more personal tests, perhaps it will be proposed to it.source
community as a shares script; but probably the issue will be fixed or a
better patch will be proposed.
Alex
2013/12/7 Yann Forget <yannfo(a)gmail.com>
Hi Alex,
Where do you use that?
Regards,
Yann
2013/12/7 Alex Brollo <alex.brollo(a)gmail.com>
This is the simple script that I'm using to
reduce to a comfortable size
edit textarea in nsPage, it "sniffs" too layout toggling:
function resizeBox () {if ((wgCanonicalNamespace=="Page" &&
(wgAction=="edit" || wgAction=="submit"))&&
$(".wikiEditor-ui-left").css("width")==$("#wpTextbox1").css("width"))
{$("#wpTextbox1").attr("rows","10")} else
{$("#wpTextbox1").attr("rows","31");}
}
$(document).ready(function () {
$("img[rel='toggle-layout']").attr("onclick","resizeBox()");
resizeBox();
}
);
Rough, but running. :-)
Alex
_______________________________________________
Wikisource-l mailing list
Wikisource-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
Wikisource-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
Wikisource-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
Wikisource-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l