1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/ckeditor/samples/old/dialog/assets/my_dialog.js Thu Dec 15 18:10:20 2016 +0300
1.3 @@ -0,0 +1,48 @@
1.4 +/**
1.5 + * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
1.6 + * For licensing, see LICENSE.md or http://ckeditor.com/license
1.7 + */
1.8 +
1.9 +CKEDITOR.dialog.add( 'myDialog', function() {
1.10 + return {
1.11 + title: 'My Dialog',
1.12 + minWidth: 400,
1.13 + minHeight: 200,
1.14 + contents: [
1.15 + {
1.16 + id: 'tab1',
1.17 + label: 'First Tab',
1.18 + title: 'First Tab',
1.19 + elements: [
1.20 + {
1.21 + id: 'input1',
1.22 + type: 'text',
1.23 + label: 'Text Field'
1.24 + },
1.25 + {
1.26 + id: 'select1',
1.27 + type: 'select',
1.28 + label: 'Select Field',
1.29 + items: [
1.30 + [ 'option1', 'value1' ],
1.31 + [ 'option2', 'value2' ]
1.32 + ]
1.33 + }
1.34 + ]
1.35 + },
1.36 + {
1.37 + id: 'tab2',
1.38 + label: 'Second Tab',
1.39 + title: 'Second Tab',
1.40 + elements: [
1.41 + {
1.42 + id: 'button1',
1.43 + type: 'button',
1.44 + label: 'Button Field'
1.45 + }
1.46 + ]
1.47 + }
1.48 + ]
1.49 + };
1.50 +} );
1.51 +