82d683e4c3bdaedb0918efb8f577ee00ae265222
[yaffs-website] / web / modules / contrib / ckeditor_widgets / js / plugins / widgetcommon / dialogs / foundation2Col.js
1 CKEDITOR.dialog.add( 'foundation2Col', function( editor ) {
2     return {
3         title: 'Edit 2 Column Box',
4         minWidth: 200,
5         minHeight: 100,
6         contents: [
7             {
8                 id: 'info',
9                 elements: [
10                     {
11                         id: 'align',
12                         type: 'select',
13                         label: 'Align',
14                         items: [
15                             [ editor.lang.common.notSet, '' ],
16                             [ editor.lang.common.alignLeft, 'left' ],
17                             [ editor.lang.common.alignRight, 'right' ],
18                             [ editor.lang.common.alignCenter, 'center' ]
19                         ],
20                         setup: function( widget ) {
21                             this.setValue( widget.data.align );
22                         },
23                         commit: function( widget ) {
24                             widget.setData( 'align', this.getValue() );
25                         }
26                     },
27                     {
28                         id: 'width',
29                         type: 'text',
30                         label: 'Width',
31                         width: '50px',
32                         setup: function( widget ) {
33                             this.setValue( widget.data.width );
34                         },
35                         commit: function( widget ) {
36                             widget.setData( 'width', this.getValue() );
37                         }
38                     }
39                 ]
40             }
41         ]
42     };
43 } );