Further modules included.
[yaffs-website] / web / modules / contrib / ckeditor_widgets / js / plugins / widgetcommon / dialogs / foundation2Col.js
diff --git a/web/modules/contrib/ckeditor_widgets/js/plugins/widgetcommon/dialogs/foundation2Col.js b/web/modules/contrib/ckeditor_widgets/js/plugins/widgetcommon/dialogs/foundation2Col.js
new file mode 100644 (file)
index 0000000..82d683e
--- /dev/null
@@ -0,0 +1,43 @@
+CKEDITOR.dialog.add( 'foundation2Col', function( editor ) {
+    return {
+        title: 'Edit 2 Column Box',
+        minWidth: 200,
+        minHeight: 100,
+        contents: [
+            {
+                id: 'info',
+                elements: [
+                    {
+                        id: 'align',
+                        type: 'select',
+                        label: 'Align',
+                        items: [
+                            [ editor.lang.common.notSet, '' ],
+                            [ editor.lang.common.alignLeft, 'left' ],
+                            [ editor.lang.common.alignRight, 'right' ],
+                            [ editor.lang.common.alignCenter, 'center' ]
+                        ],
+                        setup: function( widget ) {
+                            this.setValue( widget.data.align );
+                        },
+                        commit: function( widget ) {
+                            widget.setData( 'align', this.getValue() );
+                        }
+                    },
+                    {
+                        id: 'width',
+                        type: 'text',
+                        label: 'Width',
+                        width: '50px',
+                        setup: function( widget ) {
+                            this.setValue( widget.data.width );
+                        },
+                        commit: function( widget ) {
+                            widget.setData( 'width', this.getValue() );
+                        }
+                    }
+                ]
+            }
+        ]
+    };
+} );
\ No newline at end of file