Importation du code de ckeditor 4.3.4 en conservant les développements Plinn et en...
[ckeditor.git] / skins / ckeditor / samples / plugins / dialog / assets / my_dialog.js
diff --git a/skins/ckeditor/samples/plugins/dialog/assets/my_dialog.js b/skins/ckeditor/samples/plugins/dialog/assets/my_dialog.js
new file mode 100644 (file)
index 0000000..3edd072
--- /dev/null
@@ -0,0 +1,48 @@
+/**\r
+ * Copyright (c) 2003-2014, 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( editor ) {\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