﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10218	Image cmbAlign Select Box Choice Disappearing in IE, Chrome, and Opera (Not Firefox)	Jack Herr		"This is the first time I am reporting what I believe to be a bug.  Please forbear on mistakes.

The cmbAlign select box choice made by a user when creating an image is not sustained when the image is edited if the items and default for the box are configured in the dialogDefinition event.  The select box value appears as a blank.  It can be reselected but disappears as a style if it is not explicitly reselected by the user.  This occurs in IE, Chrome, and Opera.  Not in Firefox.

If the select box is not configured, this problem does not occur.

This causes a particular problem in 4.1RC if one manually authorizes content using allowedContent and forces the need for the float style (such as:  ""img [!src, alt] {!float};"").  In this case, the image will eventually disappear if an innocent user simply assumes that his or her previous selection will be remembered.

Here is the relevant code used to configure the box:


{{{
CKEDITOR.on(""dialogDefinition"", function(e)
{
	var DialogName = e.data.name;
	var DialogDefinition = e.data.definition;
		
	var DialogTab;
	var DialogElement;

	if (DialogName == ""image"")
	{
	        DialogTab = DialogDefinition.getContents(""info"");
			
		DialogElement = DialogTab.get(""cmbAlign"");
		DialogElement[""label""] = ""Image Alignment"";
		DialogElement[""items""] = [ [""Right""], [""Left""] ];
		DialogElement[""default""] = ""Right"";

		}
	});
}}}
"	Bug	closed	Normal		UI : Dialogs	4.1 RC	invalid	Image UI cmbAlign	
