在做新闻或者公告模块时,我们往往会用到类word的在线编辑器,此处以eWebEditor组件的使用为例简单介绍下其用法。
1.去eWebEditor的网站下载。(附件中已提供)
2.将下载好的精简版eWebEditor整个目录拷贝到webRoot/webContent下。
3.在页面中需要使用该组件的位置添加以下代码:
注意:name属性即为后台要获取的属性的值
<input type="hidden" name="content" value="">
<iframe id="eWebEditor1" src="../ewebeditor/ewebeditor.htm?id=content&style=standard600&skin=office2003" frameborder="0" scrolling="no" width="600" height="350"></iframe>
<li><a href="http://dl.iteye.com/topics/download/580030ef-e676-3598-9b07-b3974a4d59e4">eWebEditor_Lite_V9.0.rar</a> |