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

       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);  
            }); 

猜你喜欢

转载自www.cnblogs.com/weizhanyu/p/9974836.html