Hi All. Great site.
I like the way it all works, and it looks like you all have put some serious effort into all of it, so I'm almost reluctant to ask the following question as it may be seen as a criticism (which it is not).

Howabout some buttons that insert various html tags into the edit box. Im sure this can be done quite easily with a bit of client side javascript.

A button for line break, code and a couple of the other common tags would be really nice, especially for those of us with CTS for whom typing HTML tags causes pain...

Well, once again great site, thanks to the sysops...
Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)

Edit kudra, 2001-09-02 CPT to CTS per ntc request

Replies are listed 'Best First'.
(crazyinsomniac) Re: Insert HTML buttons.
by crazyinsomniac (Prior) on Sep 01, 2001 at 08:48 UTC
    Now that i've been hacking around with e2, it shouldn't bee too difficult to add something like that as a user setting.

    I'll see this weekend about writing something up for javajunkies, and I'll see about porting it to perlmonks (jj v 1.0, pm v .8).

    If I'm able to port the code to pm without too much tomfoolery, I'll submit a patch to vroom, but if not, it'll be available for sure when we port pm to v 1.0 of the e2 engine (zdog is in charge of the porting effort for all you pmdev guys).

    As for xhtml compatibility, piss of (pm be a relic of the pre-standardization era, and anyway, it does pretty well anyway). Also, that is not gonna happen until we port pm to version 1 (or, in case OeufMayo should finish it before then, which I do not believe will happen, but he's a hard working guy, so you never know).

    How this thing'd be laid out, is next to the title box, there will be a pulldown menu with the approved html tags in there, with a button next to it, that when pressed, will insert the selected approved html tag at the cursor in the big text area.

    P.S. - I will be cleaning some code this weekend ;D

    update: It's been a while since I abandoned javascript, so if anyone can provide me with working code (javascript, the javascript), that would do such a thing i'd really appreciate it. I'm beginning to doubt it is possible (short of having a layer, and recreating the form in that layer or some such nonsense, which I also do not feel like writing at the moment).

     
    ___crazyinsomniac_______________________________________
    Disclaimer: Don't blame. It came from inside the void

    perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

      Well I have a trick now. Ive put a bunch of tags in my signature. When I start a new message they are there waiting to be cut and pasted as needed.
      Sometimes cheap and easy is the way to go...

      Yves

      --
      You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)

      i wrote a simple example of this here. only works in IE 5+ on windows though. i can't find an equivalent to document.selection in any other browsers.

      anders pearson

Re: Insert HTML buttons.
by Maclir (Curate) on Sep 01, 2001 at 00:41 UTC

    So what tags should have buttons associated with them? And what about those Monks that don't allow javascript to run on their client?

    While not wanting to discourage you, I would prefer to see effort expended to make the Perlmonks site fully XHTML 1.0 and CSS 2.0 compliant first.

      The folks that dont allow jscript to run wouldnt be able to use the buttons. You think there are many?

      as for the two, one is a big deal the other is probably an hour at tops...
      Also, buttons are a user thing, XHTML/CSS thats a sysadmin, developer, backend thing. Not really comparable

      Yves
        While the use of correct XHTML and CSS may well be a "backend thing", some one has to modify the code that runs Perlmonks to add new features - either develop and test the Javascript, or make the changes to the HTML generation. Given the time constraints on vroom and other who maintain the software, plus the other suggestions for enhancements . . . .
      to learn any kind of button goto: http://www.neiljohan.com/html/advancedhtml.htm
Re: Insert HTML buttons.
by Anonymous Monk on Sep 01, 2001 at 00:48 UTC
    What is CPT? CarPal Tunnel syndrome perhaps, but I usually see CTS to refer to that... Is CPT some new term that I'm unaware of?
      Sorry.
      Mental glitch there, not sure what I was thinking. :-)
      I havent had a doctor say it, but after a day at the office my arm is on fire... Hand hurts or is numb and the works. Come to think of it Im going home now...
      :-)
      yves
        As someone who use to suffer from Carpal Tunnel Syndrome (back when it was called "Repetition Strain Injury"), we were taugh some techniques on how to avoid the problem:
        1. A proper ergomonic work environment. This means a chair that lets you sit in a good posture, a keyboard that is the right size and shape, correct positioning of the monitor and so on.
        2. Rest breaks. Don't type non-stop for long periods. Have a short break - stand and stretch - walk around.
        3. Learn to type correctly - the proper position with two hands, and using all of your fingers and thumbs.
        These days, with all keyboards being well designed, and their being no excuse for management to to provide proper (that is - a safe) working environment for staff, there is no excuse for people using keyboard equipment to damage their bodies. Now if you are not sensible enough to have regular breaks from typing, then more fool you.

        From someone who knows - who has been there.