diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 17:45:33 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 18:00:33 +0100 |
commit | 7adcb81e4f83f98c468889aaa5a85558ba88c770 (patch) | |
tree | 0d6ede733777b29060b48df4afaa2c64bfbae276 /sources/plugins/dialog/samples/assets/my_dialog.js | |
download | connexionswing-ckeditor-component-4.5.6.tar.gz connexionswing-ckeditor-component-4.5.6.tar.zst connexionswing-ckeditor-component-4.5.6.zip |
Initial commit4.5.6
Diffstat (limited to 'sources/plugins/dialog/samples/assets/my_dialog.js')
-rw-r--r-- | sources/plugins/dialog/samples/assets/my_dialog.js | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sources/plugins/dialog/samples/assets/my_dialog.js b/sources/plugins/dialog/samples/assets/my_dialog.js new file mode 100644 index 00000000..6ee1a201 --- /dev/null +++ b/sources/plugins/dialog/samples/assets/my_dialog.js | |||
@@ -0,0 +1,49 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.dialog.add( 'myDialog', function() { | ||
7 | return { | ||
8 | title: 'My Dialog', | ||
9 | minWidth: 400, | ||
10 | minHeight: 200, | ||
11 | contents: [ | ||
12 | { | ||
13 | id: 'tab1', | ||
14 | label: 'First Tab', | ||
15 | title: 'First Tab', | ||
16 | elements: [ | ||
17 | { | ||
18 | id: 'input1', | ||
19 | type: 'text', | ||
20 | label: 'Text Field' | ||
21 | }, | ||
22 | { | ||
23 | id: 'select1', | ||
24 | type: 'select', | ||
25 | label: 'Select Field', | ||
26 | items: [ | ||
27 | [ 'option1', 'value1' ], | ||
28 | [ 'option2', 'value2' ] | ||
29 | ] | ||
30 | } | ||
31 | ] | ||
32 | }, | ||
33 | { | ||
34 | id: 'tab2', | ||
35 | label: 'Second Tab', | ||
36 | title: 'Second Tab', | ||
37 | elements: [ | ||
38 | { | ||
39 | id: 'button1', | ||
40 | type: 'button', | ||
41 | label: 'Button Field' | ||
42 | } | ||
43 | ] | ||
44 | } | ||
45 | ] | ||
46 | }; | ||
47 | } ); | ||
48 | |||
49 | // %LEAVE_UNMINIFIED% %REMOVE_LINE% | ||