2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: fcktablehandler_gecko.js
14
* Manage table operations (IE specific).
17
* Frederico Caldeira Knabben (fredck@fckeditor.net)
20
FCKTableHandler.GetSelectedCells = function()
22
var aCells = new Array() ;
24
var oSelection = FCK.EditorWindow.getSelection() ;
26
// If the selection is a text.
27
if ( oSelection.rangeCount == 1 && oSelection.anchorNode.nodeType == 3 )
29
var oParent = FCKTools.GetElementAscensor( oSelection.anchorNode, 'TD' ) ;
38
for ( var i = 0 ; i < oSelection.rangeCount ; i++ )
40
var oRange = oSelection.getRangeAt(i) ;
41
var oCell = oRange.startContainer.childNodes[ oRange.startOffset ] ;
43
if ( oCell.tagName == 'TD' )
44
aCells[aCells.length] = oCell ;