1 /** 2 * Add ul/ol button. 3 * @author yiminghe@gmail.com 4 */ 5 KISSY.add("editor/plugin/unorderedList/index", function (S, Editor, ListButton, ListCmd) { 6 7 function unorderedList() { 8 } 9 10 S.augment(unorderedList, { 11 renderUI:function (editor) { 12 ListCmd.init(editor); 13 14 editor.addButton("unorderedList", { 15 cmdType:"insertUnorderedList", 16 mode:Editor.WYSIWYG_MODE 17 }, ListButton); 18 } 19 }) 20 21 return unorderedList; 22 }, { 23 requires:['editor', '../listUtils/btn', './cmd'] 24 });