Some people have asked for a javascript formatting toolbar above the post textarea. Here is my variant. Just copy the below text to your free nodelet settings.
<script type="text/javascript" defer><!-- function edittoolbar_help(){window.alert('Separate paragraphs with "<p +>", put "<c>".."<\x2fc>" around code or data (linebreaks inside it ar +e taken literally) and you\x27ll be okay. Don\x27t forget to check i +f the preview looks right.');} (function(){ var d=document,c="createElement",i="appendChild"; var t=d.getElementsByTagName("textarea")[0]; function b(x){ t.parentNode.insertBefore(x,t) }; if(t){ var l=d[c]("a"),m=d[c]("img"); m.src="http://www.math.bme.hu/~ambrus/pu/edittoolbar"; m.border=0; l.href="javascript:edittoolbar_help()"; l[i](m);b(l);b(d[c]("br")); } })(); //--></script>
If people like this, it could even be made an official perlmonks patch to aid some new monks which you can then disable by a setting. Of course in that case the image has to be copied to the perlmonks server.
Update: see also Free Nodelet Hack: a graphical editor for composing nodes, PerlMonks Editor.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Javascript formatting toolbar for perlmonks
by Gavin (Archbishop) on Aug 20, 2009 at 10:38 UTC | |
Re: Javascript formatting toolbar for perlmonks
by ambrus (Abbot) on Nov 25, 2009 at 15:34 UTC | |
Re: Javascript formatting toolbar for perlmonks
by Gavin (Archbishop) on Aug 22, 2009 at 08:59 UTC | |
by Anonymous Monk on Aug 22, 2009 at 09:38 UTC | |
Re: Javascript formatting toolbar for perlmonks
by Argel (Prior) on Aug 19, 2009 at 19:58 UTC |
Back to
Perl Monks Discussion