寻找有关如何创建简单文本编辑器的教程吗?

|                                                                                                                   关闭。这个问题是题外话。它当前不接受答案。                                                      
已邀请:
一个简单的文本编辑器
<?
if ($_POST) {
  file_put_contents(\"file.txt\",$_POST[\'text\']);
  header (\"Location: \".$_SERVER[\'PHP_SELF\']);
  exit;
}
$text = htmlspecialchars(file_get_contents(\"file.txt\"));
?>
<form method=\"POST\">
<textarea name=\"text\"><?=$text?></textarea>
<input type=\"submit\">
</form>
    
为什么不只使用http://ckeditor.com或其他许多现有编辑器。重塑轮子是愚蠢的     
我不会称之为教程,但是我认为Mozilla的Midasdemo是不错的入门。 规范:http://www.mozilla.org/editor/midas-spec.html 演示:http://www.mozilla.org/editor/midasdemo/     

要回复问题请先登录注册