Jump to content

Simple Wysiwyg Editor


gongpex

Recommended Posts

Hello everyone, I had tried to create simple WYSIWYG editor, but the result is not good, I tried using method "post" like this code:

<form action="index_2.php" method="post" enctype="multipart/form-data"><textarea id="A1" name="news" cols="75" rows="5"></textarea><br />  <input type="submit" value="update" /></form>

and at the index_2.php, the code I create like this:

<?php$news=$_POST['news'];$news=str_replace("\\","",$news);echo "$news";?>

When I type text on "textarea" it must insert html taqs likes: <br /> <li> and etc. So that it can displayed well. And after I type, it cannot be save, of course I lost all of my text. Please someone help me,I don't ask question to create editor like this forum "posting form", but at least I can create only for text(I can write on browser page without I must insert html taqs). Thank you

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...