+ var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/,\r
+ isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ),\r
+ isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true ),\r
+ fillerEvaluator = function( element )\r
+ {\r
+ return isNotBookmark( element ) && isNotWhitespaces( element );\r
+ };\r
+\r
+ // Check if there's a filler node at the end of an element, and return it.\r
+ CKEDITOR.dom.element.prototype.getBogus = function ()\r
+ {\r
+ var tail = this.getLast( fillerEvaluator );\r
+ if ( tail && ( !CKEDITOR.env.ie ? tail.is && tail.is( 'br' )\r
+ : tail.getText && tailNbspRegex.test( tail.getText() ) ) )\r
+ {\r
+ return tail;\r
+ }\r
+ return false;\r
+ };\r
+\r