Hi,
I'm trying to format the content of an article with javascript. The script works like this. The user clicks on the "Bold button" and he gets a prompt asking him to enter the text which is going to be bold. Then the text is automatically enclosed in [ B]Text here[/ B] in the textarea. The script works fine. But what I want to do is to display the [ B]content[/ B] tag in another textarea of another page.
What I want to call the formatting buttons in a popup window and the the tags are inserted in the mainpage textarea wich is articles.php
Your script is actually very good. Can I have it to play around with the code and see how it works?
What I'm trying to do is when the user clicks on the IMG button a window pops up where he can upload a picture to the server rather than upload it by ftp and write the url. After uploading the picture without errors, he can then click on the ADD PICTURE button where the textarea is automatically updated with the [ IMG]filename.jpg[ /IMG] tags and the pop up window closes.
Bookmarks