<?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%2FHowto%2FDefault_Dialog_Tab</id>
		<title>CKEditor 3.x/Howto/Default Dialog Tab - 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%2FHowto%2FDefault_Dialog_Tab"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Howto/Default_Dialog_Tab&amp;action=history"/>
		<updated>2026-05-19T15:31:08Z</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/Howto/Default_Dialog_Tab&amp;diff=6387&amp;oldid=prev</id>
		<title>Anna: Article contents added</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Howto/Default_Dialog_Tab&amp;diff=6387&amp;oldid=prev"/>
				<updated>2011-07-06T13:29:38Z</updated>
		
		<summary type="html">&lt;p&gt;Article contents added&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#CUSTOMTITLE:How Do I Set a Specific Dialog Window Tab to Open by Default?}}&lt;br /&gt;
If you want to change your CKEditor configuration to show a different tab on opening a dialog window, you can hook into the &amp;lt;code&amp;gt;[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.html#onShow onShow]&amp;lt;/code&amp;gt; event of the dialog window. &lt;br /&gt;
&lt;br /&gt;
Firstly, you will need to know the names of the dialog window and the tab that you want to set as default, so [[CKEditor_3.x/Howto/Field_Names|use the Developer Tools plugin]] to get these.&lt;br /&gt;
&lt;br /&gt;
Once you have the names you can add the following code either in the &amp;lt;code&amp;gt;&amp;lt;script&amp;gt;&amp;lt;/code&amp;gt; element inserted into the page that contains your CKEditor instance or into the &amp;lt;code&amp;gt;config.js&amp;lt;/code&amp;gt; file. The example below sets the '''Image Properties''' dialog window to open the '''Advanced''' tab by default.&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;
	// Take the dialog window 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;
	if (dialogName == 'image') {&lt;br /&gt;
		dialogDefinition.onShow = function () {&lt;br /&gt;
			// This code will open the Advanced tab.&lt;br /&gt;
			this.selectPage('advanced');&lt;br /&gt;
		};&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If, for example, you want to open the '''Upload''' tab first to make it more convenient for your users to use the ([[CKEditor_3.x/Howto/File_Uploader|existing and previously integrated]]) file uploader, change the code in the following way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// This code will open the Upload tab.&lt;br /&gt;
this.selectPage('Upload');&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Anna</name></author>	</entry>

	</feed>