+ if ( CKEDITOR.env.gecko )\r
+ {\r
+ activateEditing( editor );\r
+\r
+ // Ensure bogus br could help to move cursor (out of styles) to the end of block. (#7041)\r
+ var pathBlock = path.block || path.blockLimit,\r
+ lastNode = pathBlock && pathBlock.getLast( isNotEmpty );\r
+\r
+ // Check some specialities of the current path block:\r
+ // 1. It is really displayed as block; (#7221)\r
+ // 2. It doesn't end with one inner block; (#7467)\r
+ // 3. It doesn't have bogus br yet.\r
+ if ( pathBlock\r
+ && pathBlock.isBlockBoundary()\r
+ && !( lastNode && lastNode.type == CKEDITOR.NODE_ELEMENT && lastNode.isBlockBoundary() )\r
+ && !pathBlock.is( 'pre' )\r
+ && !pathBlock.getBogus() )\r
+ {\r
+ editor.fire( 'updateSnapshot' );\r
+ restoreDirty( editor );\r
+ pathBlock.appendBogus();\r
+ }\r
+ }\r