+++ /dev/null
-/*\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
- *\r
- * == BEGIN LICENSE ==\r
- *\r
- * Licensed under the terms of any of the following licenses at your\r
- * choice:\r
- *\r
- * - GNU General Public License Version 2 or later (the "GPL")\r
- * http://www.gnu.org/licenses/gpl.html\r
- *\r
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
- * http://www.gnu.org/licenses/lgpl.html\r
- *\r
- * - Mozilla Public License Version 1.1 or later (the "MPL")\r
- * http://www.mozilla.org/MPL/MPL-1.1.html\r
- *\r
- * == END LICENSE ==\r
- *\r
- * Manage table operations (non-IE).\r
- */\r
-\r
-FCKTableHandler.GetSelectedCells = function()\r
-{\r
- var aCells = new Array() ;\r
-\r
- var oSelection = FCKSelection.GetSelection() ;\r
-\r
- // If the selection is a text.\r
- if ( oSelection.rangeCount == 1 && oSelection.anchorNode.nodeType == 3 )\r
- {\r
- var oParent = FCKTools.GetElementAscensor( oSelection.anchorNode, 'TD,TH' ) ;\r
-\r
- if ( oParent )\r
- aCells[0] = oParent ;\r
-\r
- return aCells ;\r
- }\r
-\r
- for ( var i = 0 ; i < oSelection.rangeCount ; i++ )\r
- {\r
- var oRange = oSelection.getRangeAt(i) ;\r
- var oCell ;\r
-\r
- if ( oRange.startContainer.tagName.Equals( 'TD', 'TH' ) )\r
- oCell = oRange.startContainer ;\r
- else\r
- oCell = oRange.startContainer.childNodes[ oRange.startOffset ] ;\r
-\r
- if ( oCell.nodeName.Equals( 'TD', 'TH' ) )\r
- aCells[aCells.length] = oCell ;\r
- }\r
-\r
- return aCells ;\r
-}\r