The situation: I have two different toolbars configured in config.js. The toolbar I've defined as config.toolbar_cust is the one I want to work with.
Under that I have the following which I'm sure we've all seen before for taking out various options from the link functionality...
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.
dialogDefinition.removeContents( 'target' );
dialogDefinition.removeContents( 'advanced' );
// Get a reference to the 'Link Info' tab.
var infoTab = dialogDefinition.getContents( 'info' );
// Remove unnecessary widgets from the 'Link Info' tab.
infoTab.remove( 'linkType');
infoTab.remove( 'protocol');
}
});
What I want to do is only have the link option removal happen on my editors with the custom toolbar assigned to them. Is there a way I can do that? Thanks in advance.