Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 4474)
+++ /CKEditor/trunk/CHANGES.html (revision 4475)
@@ -56,4 +56,5 @@
#4609 : Fixed flash object is lost when loading data from outside editor.
#4625 : Fixed editor stay visible in a div with style 'visibility:hidden'.
+ #4621 : Fixed clicking below table cause a empty table been generated.
Index: /CKEditor/trunk/_source/core/dom/range.js
===================================================================
--- /CKEditor/trunk/_source/core/dom/range.js (revision 4474)
+++ /CKEditor/trunk/_source/core/dom/range.js (revision 4475)
@@ -1184,5 +1184,6 @@
blockBoundary,
!blockBoundary.is( 'br' ) &&
- ( !enlargeable || blockBoundary.contains( enlargeable ) ) ?
+ ( !enlargeable && this.checkStartOfBlock()
+ || enlargeable && blockBoundary.contains( enlargeable ) ) ?
CKEDITOR.POSITION_AFTER_START :
CKEDITOR.POSITION_AFTER_END );
@@ -1209,6 +1210,6 @@
this.setEndAt(
blockBoundary,
- !blockBoundary.is( 'br' ) &&
- ( !enlargeable || blockBoundary.contains( enlargeable ) ) ?
+ ( !enlargeable && this.checkEndOfBlock()
+ || enlargeable && blockBoundary.contains( enlargeable ) ) ?
CKEDITOR.POSITION_BEFORE_END :
CKEDITOR.POSITION_BEFORE_START );