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