CKEDITOR.dialog.add( 'myplugin', function( editor )
{
return {
title : 'my title',
minWidth : 390,
minHeight : 130,
onOk : function()
{
var name = this.getValueOf('contid','fieldid');
// code ?????????
return true;
},
contents : [{
id : 'contid'
label : '',
title : '',
elements :
[{
id: 'tab1',
label : '',
title : '',
type : 'vbox',
children :
[
{
type: 'text',
id: 'fieldid',
title : 'my field',
width: '300px',
label: 'a field',
labelLayout: 'vertical',
}
] //children
}] //elements
}], //contents
buttons : [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ]
}; // return
} );
Tue, 02/02/2010 - 12:24
#1

Re: Help for coding my plugin!
Re: Help for coding my plugin!
Re: Help for coding my plugin!
Re: Help for coding my plugin!
Re: Help for coding my plugin!
That file is meant to understand the basics about how to use the API, so please, read it thoroughly as it isn't that big.
Re: Help for coding my plugin!