Projet

Général

Profil

Paste
Télécharger (897 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / libraries / ckeditor-4.9.2-full / samples / old / dialog / assets / my_dialog.js @ b986a83e

1
/**
2
 * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
3
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-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