Index: /FCKeditor/trunk/editor/_source/internals/fckcodeformatter.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckcodeformatter.js	(revision 2781)
+++ /FCKeditor/trunk/editor/_source/internals/fckcodeformatter.js	(revision 2782)
@@ -48,5 +48,5 @@
 FCKCodeFormatter._ProtectData = function( outer, opener, data, closer )
 {
-	return opener + '___FCKpd___' + FCKCodeFormatter.ProtectedData.push( data ) + closer ;
+	return opener + '___FCKpd___' + ( FCKCodeFormatter.ProtectedData.push( data ) - 1 ) + closer ;
 }
 
Index: /FCKeditor/trunk/editor/_source/internals/fckxhtml.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckxhtml.js	(revision 2781)
+++ /FCKeditor/trunk/editor/_source/internals/fckxhtml.js	(revision 2782)
@@ -297,5 +297,5 @@
 FCKXHtml._AppendSpecialItem = function( item )
 {
-	return '___FCKsi___' + FCKXHtml.SpecialBlocks.push( item ) ;
+	return '___FCKsi___' + ( FCKXHtml.SpecialBlocks.push( item ) - 1 ) ;
 }
 
