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