JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-4.5.6_full
[ckeditor.git] / samples / old / dialog / assets / my_dialog.js
diff --git a/samples/old/dialog/assets/my_dialog.js b/samples/old/dialog/assets/my_dialog.js
new file mode 100644 (file)
index 0000000..54f747c
--- /dev/null
@@ -0,0 +1,48 @@
+/**\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