diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:05:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:05:42 -0300 |
commit | 20f9884f9a52e810d7e3cdbdd92eabc64812e097 (patch) | |
tree | f01dbe4db567b7bebb38274286ca2b3fc02a6d66 /vendors/ckeditor/samples/plugins/dialog/assets/my_dialog.js | |
download | elgg-20f9884f9a52e810d7e3cdbdd92eabc64812e097.tar.gz elgg-20f9884f9a52e810d7e3cdbdd92eabc64812e097.tar.bz2 |
Squashed 'mod/ckeditor/' content from commit 9f4ede0
git-subtree-dir: mod/ckeditor
git-subtree-split: 9f4ede06562e229a26d7ae8d32ebb23453c293e7
Diffstat (limited to 'vendors/ckeditor/samples/plugins/dialog/assets/my_dialog.js')
-rw-r--r-- | vendors/ckeditor/samples/plugins/dialog/assets/my_dialog.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vendors/ckeditor/samples/plugins/dialog/assets/my_dialog.js b/vendors/ckeditor/samples/plugins/dialog/assets/my_dialog.js new file mode 100644 index 000000000..b80cac91e --- /dev/null +++ b/vendors/ckeditor/samples/plugins/dialog/assets/my_dialog.js @@ -0,0 +1,48 @@ +/**
+ * 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'
+ }
+ ]
+ }
+ ]
+ };
+});
+
|