JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.1
[ckeditor.git] / _source / plugins / tabletools / plugin.js
index 0ef39f0..b06f59a 100644 (file)
@@ -148,12 +148,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                // Create a clone of the row.\r
                var newRow = row.clone( true );\r
 \r
-               // Insert the new row before of it.\r
-               newRow.insertBefore( row );\r
+               insertBefore ?\r
+                       newRow.insertBefore( row ) :\r
+                       newRow.insertAfter( row );\r
 \r
-               // Clean one of the rows to produce the illusion of inserting an empty row\r
-               // before or after.\r
-               clearRow( insertBefore ? newRow.$ : row.$ );\r
+               // Clean the new row.\r
+               clearRow( newRow.$ );\r
        }\r
 \r
        function deleteRows( selectionOrRow )\r