July 14th, 2003, 08:44 AM
The interface i would like to have is basically type the text in the box, user then selects the text and clicks the button for the required formatting, we have got the back end worked out to convert the simple code to HTML already. Its just the last bit we need some help on.
Can someone please help or at least point me in the right direction of a imple tutorial to do this.
July 14th, 2003, 09:28 AM
I actually wrote a script to do exactly what it is you need. I'm at work now, but when I get home, I'll email it to you. Send me a message with your email.
July 16th, 2003, 06:18 AM
more information on my problem.
Exactly what i need to do is this....
I have the text editor interface written in PHP and it all works fine, the last bit i need to be able to do is basically select some text and click a button to place tags around the text that are later replaced with actual HTML tags with PHP. All the buttons are created and loaded into the page.
The problem is that when i click on the button (using the document.write or writein function) it simply rewrites the page.
I just need to know how to keep the focus in the text area and just insert the tags when i click on a tool button.
Last edited by Digital High; July 16th, 2003 at 08:25 AM.