Hi, i tried to add a new tab in the popup dialog, can i add a onclick function on the button ?
The below code is something i put in the html which the editor is in
Thanks
Grace
The below code is something i put in the html which the editor is in
CKEDITOR.on( 'dialogDefinition', function( ev ) { // Take the dialog name and its definition from the event // data. var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; // Check if the definition is from the dialog we're // interested on (the "Link" dialog). if ( dialogName == 'image' ) { // Add a new tab to the "Link" dialog. dialogDefinition.addContents({ id : 'customTab', label : 'Upload', accessKey : 'M', elements : [ { id : 'myFile', type : 'file', label : 'My File' }, { id : 'myButton', type : 'button', label : 'Upload' } ] }); } }); //]]>
Thanks
Grace
Re: New Tab in popup dialog
Thanks
Re: New Tab in popup dialog
Glad we could help
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
dialog tab listener
I need a dialog with two tabs. Contents on the second tab must be generated based on the input from the first tab, which means once the second tab is clicked, its contents are generated on fly.
I really appreciate it if you could provide some code.
Jimmy