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.