您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

ueditor编辑器的用法图文教程

2024/6/19 3:52:18发布75次查看
今天做了一下百度富文本编辑器,遇到了一些问题,现在来总结一下:
(1)jquery没有引用,解决方法:引用jquery并且放在所有的js前面
(2)没有报错,但是样式显示不出来。解决方法:css引用的路径不对,注意有时候按住ctrl+鼠标左键可以跳到css里面,但是还是显示不了样式,说明还是css的路径不对,至于为什么,我现在也没想明白。
(3)解决了以上问题,就可以实现效果了
(4)以下是实现的代码,以及项目目录,记录以下以便以后再出现相同的问题
<%@ page language="java" import="java.util.*" pageencoding="utf-8"%> <%string path = request.getcontextpath(); string basepath = request.getscheme()+"://"+request.getservername()+":"+request.getserverport()+path+"/";%> <!doctype html public "-//w3c//dtd html 4.01 transitional//en"> <html>   <head>     <base href="<%=basepath%>>          <title>my jsp 'index.jsp' starting page</title>          <meta http-equiv="pragma" content="no-cache">     <meta http-equiv="cache-control" content="no-cache">     <meta http-equiv="expires" content="0">         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">     <meta http-equiv="description" content="this is my page">     <!-- <link rel="stylesheet" type="text/css" href="styles.css?1.1.11">     -->           <link href="css/um_default/css/umeditor.css?1.1.11" rel="stylesheet" type="text/css" />     <link href="css/um_default/css/umeditor.css?1.1.11" rel="stylesheet" type="text/css" />          <script type="text/javascript" src="/js/jquery-2.0.3.min.js?1.1.11"></script>     <script type="text/javascript" src="/js/umeditor/umeditor.config.js?1.1.11"></script>     <script type="text/javascript" src="/js/umeditor/umeditor.min.js?1.1.11"></script>     <script type="text/javascript" src="/js/umeditor/lang/zh-cn/zh-cn.js?1.1.11"></script>    </head>      <body>    <script type="text/plain" id="myeditor" style="margin-left: 15px;min-width:620px;min-height:250px;">    </script>   </body>   <script type="text/javascript">   var um1 = um.geteditor('myeditor', {                 autoheight : true,                 initialframewidth : 620});  </script> </html>
以上就是ueditor编辑器的用法图文教程的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product