几种常用网页文本编辑器总结.docVIP

  • 5
  • 0
  • 约2.24万字
  • 约 24页
  • 2017-08-22 发布于江苏
  • 举报
文本编辑器应用总结 一. lhgeditor文本编辑器 lhgeditor组件文件结构: 1. lhgeditor.js: 组件的核心JS文件 2. lhgeditor.css:组件的样式表文件 3. images:组件所需的图片都在此文件夹中 以上三个文件为组件所必须的三个文件,组件包中其它以“_”开头的文件为示例的演示文件,实际使用中不需要这些文件。当然框架核心文件lhgcore.js是每个组件都必须用到的文件,记得加载组件前先要加载此文件。 lhgeditor组件使用说明: 1. 在调用组件的页面加载lhgcore.js和lhgeditor.js两个文件。 2. 在window.onload函数里加入J.editor.add(编辑器的id).init(); 例: script type=text/javascript window.onload = function() { J.editor.add(elm1).init(); } /script form action=_postdate.asp method=post target=_blank div textarea name=elm1 id=elm style=width:600px;height:300px; lhgeditor小型在线编辑器/textarea /div input type=submit va

文档评论(0)

1亿VIP精品文档

相关文档