﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2667	DocTypeDeclaration fck_docprops.html	mardiros		"When using the document property,[[BR]]
the doctype declaration does not work very well.[[BR]]
It is not loaded when using firefox and 
loaded as other on IE7.

The problem is that a value is use for a select,
instead of the selectedIndex.[[BR]]
( And the comparaison must be case-insensitive ???).

Here is a patch
{{{
Index: editor/dialog/fck_docprops.html
===================================================================
--- editor/dialog/fck_docprops.html	(revision 2374)
+++ editor/dialog/fck_docprops.html	(working copy)
@@ -204,9 +204,18 @@
 	}
 
 	// Document Type.
+	
 	if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
 	{
-		GetE('selDocType').value = FCK.DocTypeDeclaration ;
+		var selDocType = GetE('selDocType'); 
+		var dtd = FCK.DocTypeDeclaration.toString().toUpperCase();
+		for ( var i = 0; i < selDocType.options.length; i++ ) {
+			if ( selDocType.options[i].value.toUpperCase() == dtd ) {
+			 selDocType.selectedIndex = i;
+			 break;
+			}
+		}
+		
 
 		if ( GetE('selDocType').selectedIndex == -1 )
 		{

}}}
"	Bug	closed	Normal		General	FCKeditor 2.6.3	duplicate	HasPatch Pending	
