php里如何使用fckeditor

这是一个关于编辑新闻内容的页面,提供了新闻标题和内容的填写区域,并且集成了富文本编辑器FCKeditor来帮助用户更好地编辑新闻正文。
  1. <script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
  2. <script type="text/javascript">
  3. window.onload = function()
  4. {
  5.     var sBasePath = "FCKeditor/" ;
  6.     var oFCKeditor = new FCKeditor( "content" ) ;
  7.     oFCKeditor.BasePath = sBasePath ;
  8.     oFCKeditor.Width = "100%" ;
  9.     oFCKeditor.Height = "400" ;
  10.     oFCKeditor.ReplaceTextarea() ;
  11. }
  12. </script>
  13. <table width="778" border="0" cellpadding="0" cellspacing="6" class="border">
  14.   <tr> 
  15.     <td valign="top" width="100%" class="listcontent" align="center"> 
  16.           <b><?Php echo $message; ?></b>     
  17.       <table width="100%" border="0" cellpadding="6" cellspacing="0">
  18.         <tr> 
  19.           <td class="listTitle"> 
  20.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  21.                 <tr>
  22.                   <td><strong>编辑新闻</strong></td><td align=right> </td>
  23.                 </tr>
  24.             </table>
  25.           </td>
  26.         </tr>
  27.         <tr> 
  28.           <td valign="top" class="list"> 
  29.             <form action="admin_editnews.php?do=1" method="post" >
  30.                 新闻标题:<input type="text" name="title" size="50" value="<?php echo $title; ?>" /> <br/>
  31.                 
  32.                 
  33.                 <textarea name="content" ><?php echo $content; ?></textarea><br /><br />
  34.                     <input type="hidden" name="id" value="<?php echo $id; ?>" />
  35.                 <input type="button" value="返 回" onclick="history.back();" />  <input type="submit" value="更 新" />  
  36.             </form>
  37.           </td>
  38.         </tr>
  39.       </table>
  40.     </td>
  41.   </tr>
  42. </table>
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值