1 /** 2 * fontSize command. 3 * @author yiminghe@gmail.com 4 */ 5 KISSY.add("editor/plugin/fontSize/cmd", function (S, Editor, Cmd) { 6 var fontSizeStyle = { 7 element:'span', 8 styles:{ 9 'font-size':'#(value)' 10 }, 11 overrides:[ 12 { 13 element:'font', 14 attributes:{ 15 'size':null 16 } 17 } 18 ] 19 }; 20 21 return { 22 init:function (editor) { 23 Cmd.addSelectCmd(editor, "fontSize", fontSizeStyle); 24 } 25 }; 26 27 }, { 28 requires:['editor', '../font/cmd'] 29 });