Index: /CKEditor/branches/features/bbcode/_source/plugins/bbcode/plugin.js
===================================================================
--- /CKEditor/branches/features/bbcode/_source/plugins/bbcode/plugin.js	(revision 6698)
+++ /CKEditor/branches/features/bbcode/_source/plugins/bbcode/plugin.js	(revision 6699)
@@ -460,5 +460,5 @@
 						piece.replace( smileyRegExp, function( match, index )
 						{
-							addElement( new CKEDITOR.htmlParser.text( piece.substr( lastIndex, index ) ), currentNode );
+							addElement( new CKEDITOR.htmlParser.text( piece.substring( lastIndex, index ) ), currentNode );
 							addElement( new CKEDITOR.htmlParser.element( 'smiley', { 'desc': smileyReverseMap[ match ] } ), currentNode );
 							lastIndex = index + match.length;
@@ -466,5 +466,5 @@
 
 						if ( lastIndex != piece.length )
-							addElement( new CKEDITOR.htmlParser.text( piece.substr( lastIndex, piece.length ) ), currentNode );
+							addElement( new CKEDITOR.htmlParser.text( piece.substring( lastIndex, piece.length ) ), currentNode );
 					}
 				});
