Hi. I'm a
PHP programmer with a bare smattering of javascript. I need to do the following project and although I am hysterically reading
js books etc., I just can't get it going.
What I need is a text editor very similar to the BB text editor I'm typing in right now. Only, I need to be able to set the buttons to specific
html tags with
css attributes.
I've tried modifying a couple of existing web editors (again, like the one used on this forum) and it's just too complex. I think they use a browser-run editor and communicate with it.
I need the style to start and stop, with the button having two states, and also for the button to apply start and stop tags at the front and back of a highlighted line of text.
I assume this forum editor has a hidden form field where the tags are added, and then displays the formatted output to this screen, and if so, I'm having trouble thinking of a simple way to display/preview the formatted text.
I'm especially confused by the method of adding tags front and back to highlighted text.
Can someone steer me in the right direction? I've tried and failed to find a tutorial.
Thanks for any help.