源文件下载地址http://dl2.csdn.net/down1/20080210/10202156378.rar
在你的程序中引用“Web在线编辑器”的步骤:
--------------------------------------------
1、将lib目录的eWebEditor_zjs.jar复制到你的工程目录下,并在工程中引用这个jar文件;
2、将web目录下的所有文件和目录复制到你的web应用目录下
3、将xml目录下的两个xml文件复制到你的web应用目录/WEB-INF下
4、在你要引用“web在线编辑器”的jsp页面的<form>...</form>之间中,加入如下代码:
<textarea name="NewsContent" class="chinese" style="display:none" cols="" rows=""> </textarea>
<iframe ID="DreamEditor" src="eWebEditor.jsp?id=NewsContent&style=CoolBlue" frameborder="0" scrolling="no" width="650" height="350"> </iframe>
5、改写你的提交按钮如:<input type="submit" value="发布" onclick="NewsContent.value = DreamEditor.getHtml()" />
---------------------------------------------
注意:你的<form>标签中的method属性为post,例如:<form ... method="post">...</form>
--------------------------------------------
周继松
2007.5.25