in reply to Insert HTML buttons.

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;"

  • Comment on (crazyinsomniac) Re: Insert HTML buttons.

Replies are listed 'Best First'.
Re: (crazyinsomniac) Re: Insert HTML buttons.
by demerphq (Chancellor) on Sep 02, 2001 at 21:15 UTC
    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)

Re: (crazyinsomniac) Re: Insert HTML buttons.
by thraxil (Prior) on Sep 07, 2001 at 18:50 UTC

    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