分享

php中文字编辑器——fckeditor

 qiu977 2015-02-06

<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www./TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div id="header" style="width:1300px;height:100px;margin:0 auto;margin-bottom:10px;border:1px solid red">

</div>

<div id="content" style="width:1300px;height:400px;margin:0 auto;margin-bottom:10px;border:1px solid red">
<div id="formdiv">
 <form action="" method="post">
 <table>
  <tr>
   <td>标题</td>
   <td><input type="text" value=""></td>
  </tr>
  <tr>
   <td>标题</td>
   <td >
    <?php
    require("edit/fckeditor.php");
    $sBasePath = $_SERVER['PHP_SELF'] ;
    $sBasePath = dirname($sBasePath)."/edit/";
    $oFCKeditor = new FCKeditor('con') ;
    $oFCKeditor->BasePath = $sBasePath ;
    $oFCKeditor->Width="600px";
    $oFCKeditor->Height="250px";
    $oFCKeditor->Create() ;
    ?> 
   </td>
  </tr>
  <tr>
  <td colspan="2"><input type="submit" name="sub" value="提交"></td>
  </tr>
 
 
 </table>
 
 
 </form>
 

</div>


</div>

<div id="footer" style="width:1300px;height:100px;margin:0 auto;margin-bottom:10px;border:1px solid red">

</div>


</body>

</html>

<?php

if ($_POST["sub"]) {
echo $_POST["con"];
}

 

 


?>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约