还是dwz和kindeditor整合的问题啊,求解啊

发布于 2021-11-25 23:25:43 字数 117 浏览 884 评论 6

dwz中怎么都显示不出kindeditor啊
,谁能给我一个例子的挖

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

如日中天 2021-11-29 01:44:24

不知道你有没有成功,不过
我参考http://download.csdn.net/detail/panghupang2012/5041470上面说的成功了,本人jsp开发

无人问我粥可暖 2021-11-29 01:44:24

我这两天也遇到这样的情况 ,

先是网上查了一下代码 ,再改动了一下,完美运行

我的文件放在 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(); },
            });
        });
    });   

滥情空心 2021-11-29 01:40:15

是放在首页的啊,放在别的页面根本都不现实script

霞映澄塘 2021-11-29 01:26:12

把js放到首页

旧伤慢歌 2021-11-29 01:18:15

没用啊,直接就是用的name啊

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文