还是dwz和kindeditor整合的问题啊,求解啊
dwz中怎么都显示不出kindeditor啊
,谁能给我一个例子的挖
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
dwz中怎么都显示不出kindeditor啊
,谁能给我一个例子的挖
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
不知道你有没有成功,不过
我参考http://download.csdn.net/detail/panghupang2012/5041470上面说的成功了,本人jsp开发
我这两天也遇到这样的情况 ,
先是网上查了一下代码 ,再改动了一下,完美运行
我的文件放在 data/static/下面,用name肯定是不方便的,有时一个页面不止一个编辑,所以改成class了,并且加了一下配置,水平差,不知道怎么用配置文件,先这样顶上
$("textarea.kindeditor", $p).each(function () {
$this = $(this);
var tools = $this.attr('tools');
var items;
if(tools=='smple'){
items = ['undo', 'redo', '|', 'justifycenter', 'justifyright','justifyfull', 'indent', 'outdent','bold','italic', 'underline', 'strikethrough', 'removeformat'];
}else if(tools=='full'){
items = ['source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright','justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript','superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/','formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold','italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap','anchor', 'link', 'unlink'];
}else if(tools=='basic'){
items = ['source', '|', 'undo', 'redo', '|', 'plainpaste', 'wordpaste', '|', 'justifycenter', 'justifyright','justifyfull', 'indent', 'outdent','clearhtml', 'quickformat', '|','formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold','italic', 'underline', 'strikethrough', 'lineheight', 'removeformat','image', 'multiimage', 'link', 'unlink', 'fullscreen'];
}else if(tools=='copyright'){
items = ['source','undo', 'redo', '|', 'justifycenter', 'justifyright','justifyfull', 'indent', 'outdent', 'forecolor', 'bold','italic','removeformat'];
}
$.getScript('data/static/kindeditor/kindeditor-min.js', function () {
KindEditor.basePath = 'data/static/kindeditor/';
var editor = KindEditor.create('.kindeditor', {
uploadJson: 'data/static/kindeditor/php/upload_json.php',
fileManagerJson: 'data/static/kindeditor/php/file_manager_json.php',
allowFileManager: true,
items : items,
afterBlur: function () { editor.sync(); },
});
});
});
是放在首页的啊,放在别的页面根本都不现实script
把js放到首页
没用啊,直接就是用的name啊
http://www.oschina.net/question/175832_65098这个不行嘛?