Changeset 2363 for FCKeditor/trunk/editor/dialog/fck_tablecell.html
- Timestamp:
- 2008-08-19 11:28:15 (5 months ago)
- Files:
-
- 1 modified
-
FCKeditor/trunk/editor/dialog/fck_tablecell.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/dialog/fck_tablecell.html
r1795 r2363 33 33 var oEditor = dialog.InnerDialogLoaded() ; 34 34 35 // Gets the document DOM 36 var oDOM = oEditor.FCK.EditorDocument ; 35 var FCKDomTools = oEditor.FCKDomTools ; 37 36 38 37 // Array of selected Cells … … 75 74 GetE('txtBackColor').value = GetAttribute( oCell, 'bgColor' ) ; 76 75 GetE('txtBorderColor').value = GetAttribute( oCell, 'borderColor' ) ; 77 // GetE('cmbFontStyle').value = oCell.className ; 76 GetE('selCellType').value = oCell.nodeName.toLowerCase() ; 78 77 } 79 78 } … … 101 100 SetAttribute( aCells[i], 'bgColor' , GetE('txtBackColor').value ) ; 102 101 SetAttribute( aCells[i], 'borderColor' , GetE('txtBorderColor').value ) ; 103 // SetAttribute( aCells[i], 'className' , GetE('cmbFontStyle').value ) ; 102 103 var cellType = GetE('selCellType').value ; 104 if ( aCells[i].nodeName.toLowerCase() != cellType ) 105 aCells[i] = RenameNode( aCells[i], cellType ) ; 104 106 } 107 108 // The cells need to be reselected, otherwise the caret will appear inside the table borders (Gecko) 109 // or sent back to the beginning of the document (Opera and Safari). 110 // Strangely, IE works ok so no change is needed for IE. 111 if ( !oEditor.FCKBrowserInfo.IsIE ) 112 { 113 var selection = oEditor.FCK.EditorWindow.getSelection() ; 114 selection.removeAllRanges() ; 115 for ( var i = 0 ; i < aCells.length ; i++ ) 116 { 117 var range = oEditor.FCK.EditorDocument.createRange() ; 118 range.selectNode( aCells[i] ) ; 119 selection.addRange( range ) ; 120 } 121 } 105 122 106 123 return true ; … … 203 220 <tr> 204 221 <td nowrap="nowrap"> 222 <span fcklang="DlgCellType">Cell Type</span>:</td> 223 <td colspan="2"> 224 <select id="selCellType"> 225 <option fcklang="DlgCellTypeData" value="td" />Data 226 <option fcklang="DlgCellTypeHeader" value="th" />Header 227 </select> 228 </tr> 229 <tr> 230 <td> 231 </td> 232 <td> 233 </td> 234 <td> 235 </td> 236 </tr> 237 <tr> 238 <td nowrap="nowrap"> 205 239 <span fcklang="DlgCellRowSpan">Rows Span</span>:</td> 206 240 <td>