diff options
author | chai <chaifix@163.com> | 2018-01-26 14:12:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-01-26 14:12:33 +0800 |
commit | 07704199616228849c17302f21dd5a5a30dbea66 (patch) | |
tree | f9a9fe0e84dfb14dbabac2ebeffb8a7ab75bb821 /html/ckeditor/samples/old/dialog/assets/my_dialog.js | |
parent | a253c861daed44aad49ae9a195c9b0bc5d309134 (diff) |
*修改
Diffstat (limited to 'html/ckeditor/samples/old/dialog/assets/my_dialog.js')
-rw-r--r-- | html/ckeditor/samples/old/dialog/assets/my_dialog.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/html/ckeditor/samples/old/dialog/assets/my_dialog.js b/html/ckeditor/samples/old/dialog/assets/my_dialog.js new file mode 100644 index 0000000..33a6ee1 --- /dev/null +++ b/html/ckeditor/samples/old/dialog/assets/my_dialog.js @@ -0,0 +1,48 @@ +/** + * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +CKEDITOR.dialog.add( 'myDialog', function() { + 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' + } + ] + } + ] + }; +} ); + |