﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9027	"Error when removing the ""advanced"" tab from the ""link"" dialog"	ericl		"Using the code below in a custom config file, I get a javascript error when I click the link icon and it brings up the link dialog with the advanced tab removed. The error says ""Uncaught TypeError: Cannot call method 'setValue' of undefined ckeditor.js:149"" in Chrome. If I comment out line 10 in the code below (the line that removes the advanced tab), then the error goes away.

Using similar code to remove the advanced tabs from the image, flash and table dialogs works fine. Is there something else I need to do when trying to remove the advanced tab from the link dialog?

'''Code:'''
{{{
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;

		if (dialogName == 'link')
		{
			dialogDefinition.removeContents( 'advanced' );

			dialogDefinition.onFocus = function()
			{
				var urlField = this.getContentElement( 'info', 'url' );
					urlField.select();
				var targetField = this.getContentElement('target', 'linkTargetType');
					targetField.remove(6);
					targetField.remove(4);
					targetField.remove(2);
					targetField.remove(1);
			};
		}
	});
}}}"	Bug	closed	Normal		General		wontfix		
