下载链接:http://ueditor.baidu.com/website/download.html

具体的使用请看官 :http://ueditor.baidu.com/website/index.html

 

然后启动tomcat服务器

  http://localhost:8080/项目名称t/ueditor1_4_3_2/jsp/controller.jspction=config

这个要根据你的项目进行修改的哈

 

引入js,charset属性设置为UTF-8的,因为我的系统默认是UTF-8的

 

复制ueditor里面的index,html代码,这个要根据需要去复制的

 

 

 

 

 

 

在form表单里加入:

 

注意这些属性都不用随便修改的哦

 

获取文本和文本样式的参考代码,

 

String introduction = new String(request.getParameter(“editorValue”).getBytes(“iso-8859-1″),”UTF-8”);
  这个就是获取文本和文本样式的代码,然后下面的代码只是参考的,只要用String introduction = new String(request.getParameter(“editorValue”).getBytes(“iso-8859-1″),”UTF-8”);
  这代码就可以获取内容

 

ok,可以将文本和样式一起写入数据库了,哈哈哈,^V^

 

 

 

程序员编程修养

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2016年3月8日
下一篇 2016年3月8日

相关推荐