Index: /CKEditor/branches/prototype/_dev/docs_build/template/class.tmpl
===================================================================
--- /CKEditor/branches/prototype/_dev/docs_build/template/class.tmpl	(revision 2396)
+++ /CKEditor/branches/prototype/_dev/docs_build/template/class.tmpl	(revision 2397)
@@ -98,5 +98,36 @@
 <!-- ============================== properties summary ===================== -->
 			<if test="data.properties.length">
-				{! var ownProperties = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort( ckeditor_sortByType ); !}
+
+				{! var ownConstants = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace && $.isConstant}).sort( ckeditor_sortByType ); !}
+				<if test="ownConstants.length">
+				<table class="summaryTable" cellspacing="0" summary="A summary of the constants documented in the class {+data.alias+}.">
+					<caption>Constants Summary</caption>
+					<thead>
+						<tr>
+							<th scope="col">Constant Attributes</th>
+							<th scope="col">Constant Name and Description</th>
+						</tr>
+					</thead>
+					<tbody>
+					<for each="member" in="ownConstants">
+						<tr>
+							<td class="attributes">{!
+								if (member.isPrivate) output += "&lt;private&gt; ";
+								if (member.isInner) output += "&lt;inner&gt; ";
+								if (member.isStatic) output += "&lt;static&gt; ";
+							!}&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">
+								<if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>
+								</div>
+								<div class="description">{+resolveLinks(summarize(member.desc))+}</div>
+							</td>
+						</tr>
+					</for>
+					</tbody>
+				</table>
+				</if>
+
+				{! var ownProperties = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace && !$.isConstant}).sort( ckeditor_sortByType ); !}
 				<if test="ownProperties.length">
 				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class {+data.alias+}.">
Index: /CKEditor/branches/prototype/_dev/docs_build/template/publish.js
===================================================================
--- /CKEditor/branches/prototype/_dev/docs_build/template/publish.js	(revision 2396)
+++ /CKEditor/branches/prototype/_dev/docs_build/template/publish.js	(revision 2397)
@@ -193,5 +193,5 @@
 	}
 
-	return a < b ? -1 : a > b ? 1 : 0;
+	return weightA < weightB ? -1 : weightA > weightB ? 1 : 0;
 }
 
