CKEDITOR.dialog.add( 'test', 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 : 'Input 1'
}
]
}
],
buttons: [
CKEDITOR.dialog.okButton,
CKEDITOR.dialog.cancelButton,
{
id: 'unique name',
label: 'Custom Button',
title: 'Button description',
accessKey: 'C',
disabled: false,
onClick: function()
{
// code on click
},
}
]
};
} );
"a.dialog._.uiElementBuilders[Q.type] is undefined"
http://docs.cksource.com/FCKeditor_3.x/ ... log_System

Re: Adding a Button to a Dialog
onClick: function() { // code on click },Re: Adding a Button to a Dialog
CKEDITOR.dialog.add( 'test', 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 : 'Input 1' } ] } ], buttons: [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton, { id: 'unique name', label: 'Custom Button', title: 'Button description', accessKey: 'C', disabled: false, onClick: function() { // code on click } } ] }; } );Re: Adding a Button to a Dialog
buttons: [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton, { id: 'unique name', type: 'button', label: 'Custom Button', title: 'Button description', accessKey: 'C', disabled: false, onClick: function() { alert("Custom button clicked!"); } } ]Re: Adding a Button to a Dialog
Re: Adding a Button to a Dialog
I am not sure I am in the correct forum thread.
Any how, if anyone can help that would be greatly appreciated.
I need to add a custom button in the toolbar, which when clicked should insert the following code in the editor's textarea "<more></more>"
can any one help me?