百度上传插件 java_百度UEditor 后端配置项没有正常加载,上传插件不能正常使用!...

后端配置项没有正常加载,上传插件不能正常使用!

48c0318a72f815fa3e0b2d482087372a.png

这个怎么回事?

代码::::::

response.setHeader("Cache-Control", "no-store");

%>

body{

font-size: 14px;

color: #6b7e8a;

}

.icon{

cursor:pointer;

padding-left:5px;

padding-top:3px;

width:20px;

height:20px;

}

.icon:hover,.bg{

background: radial-gradient(#fff,#D8DDE5);

}

input[type=checkbox]{

display:inline-block;

margin:4px 9px 0;

padding-left:10px;

}

.warning{

margin-left:-57px;

padding-top:5px;

font-weight:100;

}

.layui-layedit {

width: 750px;

margin-left: 177px;

}

内容管理->新闻公告维护->编辑新闻

新闻基本信息

style="padding-right: 0px; padding-left: 0px;">新闻标题*

id="newsTitle" name="newsTitle" placeholder="20字以内 " οnblur="blurTest(this,'新闻标题')" value="${news.title}" />

style="padding-right: 0px; padding-left: 0px;">发布对象*

平台方

项目方

投资方

style="padding-right: 0px; padding-left: 0px;">发布模块*

id="" data-toggle="dropdown" data-id="proImp" title="请选择" >

请选择 

style="padding-right: 0px; padding-left: 0px;">新闻来源 

id="newsSource" name="newsSource" placeholder="8字以内 " value="${news.source}" />

style="padding-right: 0px; padding-left: 0px;">新闻作者*

id="newsAuthor" name="newsAuthor" placeholder="15字以内 " οnblur="blurTest(this,'新闻作者')" value="${news.author}" />

原文链接

id="link" name="link" placeholder="请输入新闻链接 " οnblur="blurTest1(this)" value="${news.url}" />

以http:// 或者https:// 开头

style="padding-right: 0px; padding-left: 0px;">新闻内容*

style="background-color:#3584c6;opacity:1;width:95px;height: 30px;line-height: 30px;padding: 0px;

margin-top: 25px;margin-left:315px;margin-bottom:30px;" οnclick="getContents()" >提交

删除

/删除操作/

function deleteNews(obj){

$(obj).css("background-color", "#cd0000");

$(obj).css("padding-top", "8px");

/* 每一行Id值 */

var newsId = $("#newsId").val();

layer.confirm('您确定要删除这条新闻吗?确定后这条新闻将被彻底删除!', {

skin : 'layui-layer-lan',

closeBtn : 0,

title : ['新闻删除提示'],

btn: ['确认','取消'] //按钮

}, function(){/* 点击确定 */

removeNewsItem(newsId);

/* 删除新闻 */

/* 关闭窗口 */

layer.closeAll();

$(obj).css("background-color", "");

$(obj).css("padding-top", "");

}, function(){/* 点击取消 */

$(obj).css("background-color", "");

$(obj).css("padding-top", "");

}

);

}

function removeNewsItem(id) {

$.post(

"/lgip/all/news/removeItemNews",

{ "id": id,

},

function(){

window.location.href = "/lgip/all/news/newsPreservation";

}

);

}

window.um = UE.getEditor('ueditors', {

/* 传入配置参数,可配参数列表看umeditor.config.js */

/* toolbar: ['undo redo | bold italic underline'] */

toolbars: [

[

'undo', //撤销

'redo', //重做

'bold', //加粗

'indent', //首行缩进

'italic', //斜体

'underline', //下划线

'strikethrough', //删除线

'subscript', //下标

'fontborder', //字符边框

'superscript', //上标

'formatmatch', //格式刷

'source', //源代码

'blockquote', //引用

'pasteplain', //纯文本粘贴模式

'selectall', //全选

'horizontal', //分隔线

'removeformat', //清除格式

'time', //时间

'date', //日期

'unlink', //取消链接

'spechars', //特殊字符

'searchreplace', //查询替换

'map', //Baidu地图

'simpleupload', //单图上传

'insertimage', //多图上传

'edittable', //表格属性

'edittd', //单元格属性

'link', //超链接

'justifyleft', //居左对齐

'justifyright', //居右对齐

'justifycenter', //居中对齐

'justifyjustify', //两端对齐

'customstyle', //自定义标题

'insertcode', //代码语言

'fontfamily', //字体

'fontsize', //字号

'paragraph', //段落格式

'forecolor', //字体颜色

'backcolor', //背景色

'insertorderedlist', //有序列表

'insertunorderedlist', //无序列表

'fullscreen', //全屏

'rowspacingtop', //段前距

'rowspacingbottom', //段后距

'insertframe', //插入Iframe

'imagenone', //默认

'imageleft', //左浮动

'imageright', //右浮动

'imagecenter', //居中

'lineheight', //行间距

'edittip ', //编辑提示

]

],

elementPathEnabled:false,

wordCount:false,

});

UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;

UE.Editor.prototype.getActionUrl = function(action) {

if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {

return 'http://a.b.com/upload.php';

} else if (action == 'uploadvideo') {

return 'http://a.b.com/video.php';

} else {

return this._bkGetActionUrl.call(this, action);

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值