(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;" | [reply] |
|
|
| [reply] |
|
|
| [reply] |
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.
| [reply] |
|
|
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
| [reply] |
|
|
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 . . . .
| [reply] |
|
|
to learn any kind of button goto: http://www.neiljohan.com/html/advancedhtml.htm
| [reply] |
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?
| [reply] |
|
|
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
| [reply] |
|
|
| [reply] |