Ok,
I've been banging my head against the wall for a few days now trying to simply add a 3rd button to a dialog I created. For the life of me, I'm clearly doing something wrong. Can anyone see why this .js file (which contains the code for the dialog) would fail ?
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
Re: Adding a Button to a Dialog
Man i so hoped that was the issue. I removed the comma and it still fails
. I've shut down my browser , cleared cached to be sure. So now the code looks like and still fails. Any more ideas anyone ?
Re: Adding a Button to a Dialog
Re: Adding a Button to a Dialog
niiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiice job! that was it. If any website moderators are viewing this thread, UPDATE YOUR DOCUMENTATION TO REFLECT THIS
. Thank you thank you.
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?