X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=samples%2Fplugins%2Fdialog%2Fassets%2Fmy_dialog.js;h=b80cac91e3ac9a9d8cdf8e803db9486bae848d8c;hp=e745eb2be549ea3a55a4d8589020853424b4c687;hb=860af3c4bde9866c53d5123c57e3dc6166e0fe1e;hpb=4625dba05116026713fee9008dd93306be0d1553 diff --git a/samples/plugins/dialog/assets/my_dialog.js b/samples/plugins/dialog/assets/my_dialog.js index e745eb2..b80cac9 100644 --- a/samples/plugins/dialog/assets/my_dialog.js +++ b/samples/plugins/dialog/assets/my_dialog.js @@ -1,5 +1,48 @@ -/* - Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. - For licensing, see LICENSE.html or http://ckeditor.com/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"}]}]}}); \ No newline at end of file +/** + * 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' + } + ] + } + ] + }; +}); +