wdEditor.justify.js 638 B

1234567891011121314151617181920212223242526272829303132
  1. manager.registerUI('justify', function(wdeditor, name) {
  2. var btn = new EditorManager.RadioGroup({
  3. wdeditor: wdeditor,
  4. name: name,
  5. command: name,
  6. buttons: {
  7. left: {
  8. type: "checkbox",
  9. name: "left",
  10. text: '',
  11. title:'居左',
  12. className: 'icon-justifyLeft'
  13. },
  14. center: {
  15. type: "checkbox",
  16. name: "center",
  17. text: '',
  18. title:'居中',
  19. className: 'icon-justifyCenter'
  20. },
  21. right: {
  22. type: "checkbox",
  23. name: "right",
  24. text: '',
  25. title:'居右',
  26. className: 'icon-justifyRight'
  27. }
  28. }
  29. });
  30. return btn;
  31. });