Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

slightly

macrumors regular
Original poster
Mar 14, 2003
110
0
Beacon, NY
Hi

I'm building a dynamic site for a teacher in PHP, and one part of it lets him edit certain pages (eg, the intro page, class page, etc). Currently, it displays the HTML source in one pane, lets him amend it and then preview his changes in another pane, and he can then save the changes to amend the file.

However, he doesn't want to have to use HTML tags himself. So, what I need to do is create buttons (bold, italic, header, new paragraph, etc) and have him highlight some of the text and click a button to apply the tag. Much like the buttons for this forum.

Does anyone have experience doing that, or, do you know of a free/inexpensive script to help me along with it? I'd imagine the actual tagging would be mostly/wholly done with javascript, and I would then like some way of validating what he's created before it's submitted.

Many thanks

Matt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.