`
jbeduhai
  • 浏览: 498806 次
  • 性别: Icon_minigender_1
  • 来自: 山东
社区版块
存档分类
最新评论

HtmlEditor在线编辑器应用 笔记

阅读更多

<%@ page language="java" contentType="text/html; charset=UTF-8"
 pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <title>HtmlEditor</title>
  <link href="css/style.css" rel="stylesheet" type="text/css">
  <style type="text/css">

  <!--editor与html文件上级目录平级-->
  <script src="../editor/HtmlEditor.js"></script>

 </head>
 <body>
  <s:form theme="simple">
   </table>
    <tr>
     <td valign="top" bgcolor="#FFFFFF" class="input2" align="left">
      <span class="STYLE57">* </span>内容:
     </td>
     <td bgcolor="#FFFFFF">
      <script>
       __ImageRoot = "../editor/"; // 编辑器JS文件相对于本页的路径
       __SummaryID = "summary"; // 要输入摘要的HTML控件ID
       __SummaryLen = 50; // 摘要的长度
       __ContentID = "content"; // 内容提取或写入的HTML控件ID
       HtmlEditor('内容', '500', '300');
      </script>
      <input type="hidden" name="content" id="content">
     </td>
    </tr>
             
    <tr>
     <td height="35" bgcolor="#FFFFFF" class="input2" align="left">
       &nbsp; 内容摘要:
     </td>
     <td bgcolor="#FFFFFF">
      <span class="cdTABLE">
       <textarea name="summary" id="summary" cols="65" rows="4" class="txt_099">
       系统自动摘取您输入内容的前50个字,如您要修改,请编辑此处。
       </textarea>
      </span>
     </td>
    </tr>
   </table>
  </s:form>
 </body>
</html>

1
1
分享到:
评论
1 楼 mccbbb 2012-02-15  
下载下来为什么有乱码?

相关推荐

Global site tag (gtag.js) - Google Analytics