There is a cleditor script.
And there is a popup block
$("#post").cleditor(); <script type='text/javascript'> function show_message(state){ document.getElementById('window').style.display = state; document.getElementById('wrap').style.display = state; } </script> <div onclick='show_message("none")' id='wrap'></div> <div id='window'> <div class='message_close' onclick='show_message("none")'></div><br> <form action='post' method='post'> <textarea rows='4' id='post' name='text'></textarea><br> <input type='hidden' name='poluchatel' value='$myrow[login]'> <input type='hidden' name='id' value='$myrow[id]'> <input type='submit' name='submit' value='Отправить'> </form> </div> <center><div class='myButton' onclick='show_message("block")'>Написати листа</div></center> If I push out the textarea for a block, then everything works, and if it is in a pop-up block, it becomes inactive (just gray, but the script is activated).