--- /dev/null
+/**\r
+ * Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.\r
+ * For licensing, see LICENSE.md or http://ckeditor.com/license\r
+ */\r
+\r
+CKEDITOR.dialog.add( 'myDialog', function() {\r
+ return {\r
+ title: 'My Dialog',\r
+ minWidth: 400,\r
+ minHeight: 200,\r
+ contents: [\r
+ {\r
+ id: 'tab1',\r
+ label: 'First Tab',\r
+ title: 'First Tab',\r
+ elements: [\r
+ {\r
+ id: 'input1',\r
+ type: 'text',\r
+ label: 'Text Field'\r
+ },\r
+ {\r
+ id: 'select1',\r
+ type: 'select',\r
+ label: 'Select Field',\r
+ items: [\r
+ [ 'option1', 'value1' ],\r
+ [ 'option2', 'value2' ]\r
+ ]\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ id: 'tab2',\r
+ label: 'Second Tab',\r
+ title: 'Second Tab',\r
+ elements: [\r
+ {\r
+ id: 'button1',\r
+ type: 'button',\r
+ label: 'Button Field'\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ };\r
+} );\r
+\r