首页 新闻 赞助 找找看

kindeditor 3.5可以单独调用上传图片控件吗

0
悬赏园豆:40 [待解决问题]

kindeditor 3.5可以单独调用上传图片控件吗,如果可以,请问如何实现

56fix的主页 56fix | 初学一级 | 园豆:34
提问于:2011-11-04 13:48
< >
分享
所有回答(2)
0

写扩展插件。

Astar | 园豆:40805 (高人七级) | 2011-11-04 20:20

不会写,能帮忙写个吗?

支持(0) 反对(0) 56fix | 园豆:34 (初学一级) | 2011-11-07 11:41
0
  KindEditor.ready(function (K) {
var editor = K.editor({
allowFileManager: true
});
$('.uploadimg').click(function () {
var id = $(this).attr("id");
editor.loadPlugin('image', function () {
editor.plugin.imageDialog({
imageUrl: $("#" + id + "L").val(),
clickFn: function (url, title, width, height, border, align) {
$("#" + id + "L").html("<img style='width:100%; height:100%;' src='.." + url + "'>");
$("#" + id + "LL").html("<img style='width:100%; height:100%;' src='.." + url + "'>");
editor.hideDialog();
}
});
});
});
});


编辑器加载中...

第十章 | 园豆:160 (初学一级) | 2012-02-25 14:31
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册