<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKEditor_3.x%2FDevelopers_Guide%2FDialog_Customization</id>
		<title>CKEditor 3.x/Developers Guide/Dialog Customization - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKEditor_3.x%2FDevelopers_Guide%2FDialog_Customization"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Developers_Guide/Dialog_Customization&amp;action=history"/>
		<updated>2026-05-07T23:17:35Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Developers_Guide/Dialog_Customization&amp;diff=2858&amp;oldid=prev</id>
		<title>AlfonsoML: Provide sample of porting FCKeditor options</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Developers_Guide/Dialog_Customization&amp;diff=2858&amp;oldid=prev"/>
				<updated>2010-04-04T16:38:28Z</updated>
		
		<summary type="html">&lt;p&gt;Provide sample of porting FCKeditor options&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The architecture in CKEditor allows for very flexible customization of the contents of the dialogs without any need to change the source files.&lt;br /&gt;
&lt;br /&gt;
In order to see some examples, please, take a look at the _samples/api_dialog.html file of the distribution.&lt;br /&gt;
&lt;br /&gt;
This is another example, showing how to use some the options that existed in FCKeditor:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
CKEDITOR.on( 'dialogDefinition', function( ev )&lt;br /&gt;
	{&lt;br /&gt;
		// Take the dialog name and its definition from the event data.&lt;br /&gt;
		var dialogName = ev.data.name;&lt;br /&gt;
		var dialogDefinition = ev.data.definition;&lt;br /&gt;
&lt;br /&gt;
		// Check if the definition is from the dialog we're&lt;br /&gt;
		// interested on (the Link dialog).&lt;br /&gt;
		if ( dialogName == 'link' )&lt;br /&gt;
		{&lt;br /&gt;
			// FCKConfig.LinkDlgHideAdvanced = true&lt;br /&gt;
			dialogDefinition.removeContents( 'advanced' );&lt;br /&gt;
&lt;br /&gt;
			// FCKConfig.LinkDlgHideTarget = true&lt;br /&gt;
			dialogDefinition.removeContents( 'target' );&lt;br /&gt;
/*&lt;br /&gt;
Enable this part only if you don't remove the 'target' tab in the previous block.&lt;br /&gt;
&lt;br /&gt;
			// FCKConfig.DefaultLinkTarget = '_blank'&lt;br /&gt;
			// Get a reference to the &amp;quot;Target&amp;quot; tab.&lt;br /&gt;
			var targetTab = dialogDefinition.getContents( 'target' );&lt;br /&gt;
			// Set the default value for the URL field.&lt;br /&gt;
			var targetField = targetTab.get( 'linkTargetType' );&lt;br /&gt;
			targetField[ 'default' ] = '_blank';&lt;br /&gt;
*/&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		if ( dialogName == 'image' )&lt;br /&gt;
		{&lt;br /&gt;
			// FCKConfig.ImageDlgHideAdvanced = true	&lt;br /&gt;
			dialogDefinition.removeContents( 'advanced' );&lt;br /&gt;
			// FCKConfig.ImageDlgHideLink = true&lt;br /&gt;
			dialogDefinition.removeContents( 'Link' );&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		if ( dialogName == 'flash' )&lt;br /&gt;
		{&lt;br /&gt;
			// FCKConfig.FlashDlgHideAdvanced = true&lt;br /&gt;
			dialogDefinition.removeContents( 'advanced' );&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
	});&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
By listening to the dialogDefinition event of CKEditor it's possible to customize the dialogs removing tabs or changing the default values.&lt;/div&gt;</summary>
		<author><name>AlfonsoML</name></author>	</entry>

	</feed>