Hi Alex, Where do you use that?
Regards, Yann 2013/12/7 Alex Brollo <[email protected]> > 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 > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikisource-l > >
_______________________________________________ Wikisource-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikisource-l
