From 1275e68efa680e55fd29a377c9c58c59bb7f235e Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 10 Jul 2018 22:01:22 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../samples/old/dialog/assets/my_dialog.js | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 cgi-bin/html/ckeditor/samples/old/dialog/assets/my_dialog.js (limited to 'cgi-bin/html/ckeditor/samples/old/dialog/assets/my_dialog.js') diff --git a/cgi-bin/html/ckeditor/samples/old/dialog/assets/my_dialog.js b/cgi-bin/html/ckeditor/samples/old/dialog/assets/my_dialog.js new file mode 100644 index 0000000..33a6ee1 --- /dev/null +++ b/cgi-bin/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' + } + ] + } + ] + }; +} ); + -- cgit v1.1-26-g67d0