my_dialog.js 826 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or http://ckeditor.com/license
  4. */
  5. CKEDITOR.dialog.add( 'myDialog', function() {
  6. return {
  7. title: 'My Dialog',
  8. minWidth: 400,
  9. minHeight: 200,
  10. contents: [
  11. {
  12. id: 'tab1',
  13. label: 'First Tab',
  14. title: 'First Tab',
  15. elements: [
  16. {
  17. id: 'input1',
  18. type: 'text',
  19. label: 'Text Field'
  20. },
  21. {
  22. id: 'select1',
  23. type: 'select',
  24. label: 'Select Field',
  25. items: [
  26. [ 'option1', 'value1' ],
  27. [ 'option2', 'value2' ]
  28. ]
  29. }
  30. ]
  31. },
  32. {
  33. id: 'tab2',
  34. label: 'Second Tab',
  35. title: 'Second Tab',
  36. elements: [
  37. {
  38. id: 'button1',
  39. type: 'button',
  40. label: 'Button Field'
  41. }
  42. ]
  43. }
  44. ]
  45. };
  46. } );