Hi .
Use case:- I want to add the same target dropdown from link dialog window into the link tab and then remove the advanced and target tab both. is there any way to do that. ?
Currently i am doing like this but not able to do this.?
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 in (the 'link' dialog).
if ( dialogName == 'link' )
{
// Remove the 'Target' and 'Advanced' tabs from the 'Link' dialog.
var targetTab=dialogDefinition.getContents('target','linkTargetType');
// Get a reference to the 'Link Info' tab.
var infoTab = dialogDefinition.getContents( 'info' );
infoTab.add(targetTab,'linkType');
dialogDefinition.removeContents( 'advanced' );
dialogDefinition.removeContents( 'target' );
}
});
Thanks,
Apurv
Check the "Using the
Check the "Using the JavaScript API to customize dialog windows" sample from the "samples" folder (or the nightly build) for some tips on how to modify the editor dialog windows.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!