summaryrefslogtreecommitdiff
path: root/plugins/dialog/samples/assets/my_dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dialog/samples/assets/my_dialog.js')
-rw-r--r--plugins/dialog/samples/assets/my_dialog.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/dialog/samples/assets/my_dialog.js b/plugins/dialog/samples/assets/my_dialog.js
new file mode 100644
index 0000000..e54bac6
--- /dev/null
+++ b/plugins/dialog/samples/assets/my_dialog.js
@@ -0,0 +1,49 @@
+/**
+ * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog.add( 'myDialog', function( editor ) {
+ return {
+ title: 'My Dialog',
+ minWidth: 400,
+ minHeight: 200,
+ contents: [
+ {
+ id: 'tab1',
+ label: 'First Tab',
+ title: 'First Tab',
+ elements: [
+ {
+ id: 'input1',
+ type: 'text',
+ label: 'Text Field'
+ },
+ {
+ id: 'select1',
+ type: 'select',
+ label: 'Select Field',
+ items: [
+ [ 'option1', 'value1' ],
+ [ 'option2', 'value2' ]
+ ]
+ }
+ ]
+ },
+ {
+ id: 'tab2',
+ label: 'Second Tab',
+ title: 'Second Tab',
+ elements: [
+ {
+ id: 'button1',
+ type: 'button',
+ label: 'Button Field'
+ }
+ ]
+ }
+ ]
+ };
+});
+
+// %LEAVE_UNMINIFIED% %REMOVE_LINE%