|
功能简介:
凌风迷你网页编辑器 合金网络科技工作室开发
简单,高效,架构清晰,编码规范,代码简洁
仿照目前最流行的界面,简洁大方
采用JS脚本,具有跨平台性
适合应用于留言板,BLOG,文章评论...
同时适合初学者学习
使用方法(1):
第一步,在你想要添加"凌风迷你网页编辑器"的页面添加:CSS.CSS样式表的链接
第二步,添加JS脚本函数PageOnLoad()
第三步,在<BODY标签内添加onLoad事件函数 onLoad="PageOnLoad()">
第四步,将层edit及其内部的全部代码拷贝到要添加"凌风迷你网页编辑器"的位置
使用方法(2):
直接用iframe标签将Editor.htm页包含在你要调用的页面中
并加上content隐藏域
<input type=hidden id="content" name="content">
<iframe onblur="document.all.content.value=editor.Composition.document.body.innerHTML" id="editor" src="editor/editor.htm" frameborder=1 scrolling=no width="500" height="350"></iframe> |
注意:
提交表单时,要提取编辑器中的内容为隐藏域content中的内容
下载地址:
http://www.todo.net.cn/todo/download/editor/editor.rar
预览地址:
http://www.todo.net.cn/todo/download/editor/editor.htm
有任何建议,请到<留言板>留言,我们将按照您的意见进行修改,然后发到您的邮箱里. |