首页 > 其他 > 详细

KindEditor、同时绑定多个富文本编辑器

时间:2018-11-17 18:56:27      阅读:304      评论:0      收藏:0      [点我收藏+]
       var options = {  
                filterMode : false,  
                allowImageUpload : true,  
                items : [
                    ‘source‘, ‘|‘, ‘undo‘, ‘redo‘, ‘|‘, ‘preview‘,‘cut‘, ‘copy‘, ‘paste‘,
                    ‘justifyleft‘, ‘justifycenter‘, ‘justifyright‘,
                    ‘justifyfull‘, ‘insertorderedlist‘, ‘insertunorderedlist‘, ‘indent‘, ‘outdent‘,
                    ‘clearhtml‘, ‘quickformat‘, ‘selectall‘,  ‘/‘,
                    ‘formatblock‘, ‘fontname‘, ‘fontsize‘, ‘|‘, ‘forecolor‘, ‘hilitecolor‘, ‘bold‘,
                    ‘italic‘, ‘underline‘, ‘strikethrough‘, ‘lineheight‘, ‘removeformat‘, ‘|‘, ‘image‘, ‘multiimage‘,
                    ‘table‘, ‘hr‘, ‘baidumap‘, ‘pagebreak‘,
                    ‘anchor‘, ‘link‘, ‘unlink‘,
                ],
                cssPath : ‘‘,
                wellFormatMode : true,
                /* 指定上传文件的服务器端程序。 */
                uploadJson : ‘‘,
                /* 指定上传文件的服务器端程序。 */
                fileManagerJson : ‘‘,
                allowFileManager : true,
                afterCreate : function() {
                    this.sync();
                },
                afterBlur: function () { 
                    this.sync();
                     }
                     
            };  
            var editor = new Array();  
            KindEditor.ready(function(K) {  
                editor[0] = K.create(‘textarea[name=""]‘,options);  
                editor[1] = K.create(‘textarea[name=""]‘,options);   
                editor[2] = K.create(‘textarea[name=""]‘,options);  
                editor[3] = K.create(‘textarea[name=""]‘,options);  
            }); 

 

KindEditor、同时绑定多个富文本编辑器

原文:https://www.cnblogs.com/weizhanyu/p/9974836.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!