kindeditor初學

富文本編輯器 kindeditor


簡單的引入

KindEditor.ready(function(K) {
            KE = K.create('textarea[name="content"]', {
            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',
                  'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
                  'anchor', 'link', 'unlink','letterpaper' ],
            filterMode : false,
            wellFormatMode : false,
            newlineTag : 'br',
            allowFileManager : true,
            afterBlur : function() {
                this.sync();
                K.ctrl(document, 13, function() {
                    
                });
                K.ctrl(this.edit.doc, 13, function() {
                    
                });
            }
            });   
});   

參考資料:

kindeditor詳細使用說明(個人)

http://www.doc88.com/p-212659998443.html

KindEditor 4.x documentation
http://www.kindsoft.net/docs/option.html#synctype


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章