| Line 1... |
Line 1... |
| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
|
| 2 |
<!--
|
2 |
<!--
|
| 3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
| 4 |
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
4 |
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
| 5 |
*
|
5 |
*
|
| 6 |
* == BEGIN LICENSE ==
|
6 |
* == BEGIN LICENSE ==
|
| 7 |
*
|
7 |
*
|
| 8 |
* Licensed under the terms of any of the following licenses at your
|
8 |
* Licensed under the terms of any of the following licenses at your
|
| 9 |
* choice:
|
9 |
* choice:
|
| Line 30... |
Line 30... |
| 30 |
<script type="text/javascript">
|
30 |
<script type="text/javascript">
|
| Line 31... |
Line 31... |
| 31 |
|
31 |
|
| 32 |
var dialog = window.parent ;
|
32 |
var dialog = window.parent ;
|
| Line 33... |
Line -... |
| 33 |
var oEditor = dialog.InnerDialogLoaded() ;
|
- |
|
| 34 |
|
33 |
var oEditor = dialog.InnerDialogLoaded() ;
|
| Line 35... |
Line 34... |
| 35 |
// Gets the document DOM
|
34 |
|
| 36 |
var oDOM = oEditor.FCK.EditorDocument ;
|
35 |
var FCKDomTools = oEditor.FCKDomTools ;
|
| Line 37... |
Line 36... |
| 37 |
|
36 |
|
| Line 72... |
Line 71... |
| 72 |
GetE('selVAlign').value = GetAttribute( oCell, 'vAlign' ) ;
|
71 |
GetE('selVAlign').value = GetAttribute( oCell, 'vAlign' ) ;
|
| 73 |
GetE('txtRowSpan').value = GetAttribute( oCell, 'rowSpan' ) ;
|
72 |
GetE('txtRowSpan').value = GetAttribute( oCell, 'rowSpan' ) ;
|
| 74 |
GetE('txtCollSpan').value = GetAttribute( oCell, 'colSpan' ) ;
|
73 |
GetE('txtCollSpan').value = GetAttribute( oCell, 'colSpan' ) ;
|
| 75 |
GetE('txtBackColor').value = GetAttribute( oCell, 'bgColor' ) ;
|
74 |
GetE('txtBackColor').value = GetAttribute( oCell, 'bgColor' ) ;
|
| 76 |
GetE('txtBorderColor').value = GetAttribute( oCell, 'borderColor' ) ;
|
75 |
GetE('txtBorderColor').value = GetAttribute( oCell, 'borderColor' ) ;
|
| 77 |
// GetE('cmbFontStyle').value = oCell.className ;
|
76 |
GetE('selCellType').value = oCell.nodeName.toLowerCase() ;
|
| 78 |
}
|
77 |
}
|
| 79 |
}
|
78 |
}
|
| Line 80... |
Line 79... |
| 80 |
|
79 |
|
| 81 |
// Fired when the user press the OK button
|
80 |
// Fired when the user press the OK button
|
| 82 |
function Ok()
|
81 |
function Ok()
|
| - |
|
82 |
{
|
| - |
|
83 |
oEditor.FCKUndo.SaveUndoStep() ;
|
| 83 |
{
|
84 |
|
| 84 |
for( i = 0 ; i < aCells.length ; i++ )
|
85 |
for( i = 0 ; i < aCells.length ; i++ )
|
| 85 |
{
|
86 |
{
|
| 86 |
if ( GetE('txtWidth').value.length > 0 )
|
87 |
if ( GetE('txtWidth').value.length > 0 )
|
| 87 |
aCells[i].width = GetE('txtWidth').value + ( GetE('selWidthType').value == 'percent' ? '%' : '') ;
|
88 |
aCells[i].width = GetE('txtWidth').value + ( GetE('selWidthType').value == 'percent' ? '%' : '') ;
|
| Line 98... |
Line 99... |
| 98 |
SetAttribute( aCells[i], 'vAlign' , GetE('selVAlign').value ) ;
|
99 |
SetAttribute( aCells[i], 'vAlign' , GetE('selVAlign').value ) ;
|
| 99 |
SetAttribute( aCells[i], 'rowSpan' , GetE('txtRowSpan').value ) ;
|
100 |
SetAttribute( aCells[i], 'rowSpan' , GetE('txtRowSpan').value ) ;
|
| 100 |
SetAttribute( aCells[i], 'colSpan' , GetE('txtCollSpan').value ) ;
|
101 |
SetAttribute( aCells[i], 'colSpan' , GetE('txtCollSpan').value ) ;
|
| 101 |
SetAttribute( aCells[i], 'bgColor' , GetE('txtBackColor').value ) ;
|
102 |
SetAttribute( aCells[i], 'bgColor' , GetE('txtBackColor').value ) ;
|
| 102 |
SetAttribute( aCells[i], 'borderColor' , GetE('txtBorderColor').value ) ;
|
103 |
SetAttribute( aCells[i], 'borderColor' , GetE('txtBorderColor').value ) ;
|
| - |
|
104 |
|
| 103 |
// SetAttribute( aCells[i], 'className' , GetE('cmbFontStyle').value ) ;
|
105 |
var cellType = GetE('selCellType').value ;
|
| - |
|
106 |
if ( aCells[i].nodeName.toLowerCase() != cellType )
|
| - |
|
107 |
aCells[i] = RenameNode( aCells[i], cellType ) ;
|
| - |
|
108 |
}
|
| - |
|
109 |
|
| - |
|
110 |
// The cells need to be reselected, otherwise the caret will appear inside the table borders (Gecko)
|
| - |
|
111 |
// or sent back to the beginning of the document (Opera and Safari).
|
| - |
|
112 |
// Strangely, IE works ok so no change is needed for IE.
|
| - |
|
113 |
if ( !oEditor.FCKBrowserInfo.IsIE )
|
| - |
|
114 |
{
|
| - |
|
115 |
var selection = oEditor.FCK.EditorWindow.getSelection() ;
|
| - |
|
116 |
selection.removeAllRanges() ;
|
| - |
|
117 |
for ( var i = 0 ; i < aCells.length ; i++ )
|
| - |
|
118 |
{
|
| - |
|
119 |
var range = oEditor.FCK.EditorDocument.createRange() ;
|
| - |
|
120 |
range.selectNode( aCells[i] ) ;
|
| - |
|
121 |
selection.addRange( range ) ;
|
| - |
|
122 |
}
|
| 104 |
}
|
123 |
}
|
| Line 105... |
Line 124... |
| 105 |
|
124 |
|
| 106 |
return true ;
|
125 |
return true ;
|
| Line 136... |
Line 155... |
| 136 |
<tr>
|
155 |
<tr>
|
| 137 |
<td nowrap="nowrap">
|
156 |
<td nowrap="nowrap">
|
| 138 |
<span fcklang="DlgCellWidth">Width</span>:</td>
|
157 |
<span fcklang="DlgCellWidth">Width</span>:</td>
|
| 139 |
<td>
|
158 |
<td>
|
| 140 |
<input onkeypress="return IsDigit(event);" id="txtWidth" type="text" maxlength="4"
|
159 |
<input onkeypress="return IsDigit(event);" id="txtWidth" type="text" maxlength="4"
|
| 141 |
size="3" name="txtWidth" /> <select id="selWidthType" name="selWidthType">
|
160 |
size="3" /> <select id="selWidthType">
|
| 142 |
<option fcklang="DlgCellWidthPx" value="pixels" selected="selected">pixels</option>
|
161 |
<option fcklang="DlgCellWidthPx" value="pixels" selected="selected">pixels</option>
|
| 143 |
<option fcklang="DlgCellWidthPc" value="percent">percent</option>
|
162 |
<option fcklang="DlgCellWidthPc" value="percent">percent</option>
|
| 144 |
</select></td>
|
163 |
</select></td>
|
| 145 |
</tr>
|
164 |
</tr>
|
| 146 |
<tr>
|
165 |
<tr>
|
| 147 |
<td nowrap="nowrap">
|
166 |
<td nowrap="nowrap">
|
| 148 |
<span fcklang="DlgCellHeight">Height</span>:</td>
|
167 |
<span fcklang="DlgCellHeight">Height</span>:</td>
|
| 149 |
<td>
|
168 |
<td>
|
| 150 |
<input id="txtHeight" type="text" maxlength="4" size="3" name="txtHeight" onkeypress="return IsDigit(event);" /> <span
|
169 |
<input id="txtHeight" type="text" maxlength="4" size="3" onkeypress="return IsDigit(event);" /> <span
|
| 151 |
fcklang="DlgCellWidthPx">pixels</span></td>
|
170 |
fcklang="DlgCellWidthPx">pixels</span></td>
|
| 152 |
</tr>
|
171 |
</tr>
|
| 153 |
<tr>
|
172 |
<tr>
|
| 154 |
<td>
|
173 |
<td>
|
| 155 |
</td>
|
174 |
</td>
|
| Line 158... |
Line 177... |
| 158 |
</tr>
|
177 |
</tr>
|
| 159 |
<tr>
|
178 |
<tr>
|
| 160 |
<td nowrap="nowrap">
|
179 |
<td nowrap="nowrap">
|
| 161 |
<span fcklang="DlgCellWordWrap">Word Wrap</span>:</td>
|
180 |
<span fcklang="DlgCellWordWrap">Word Wrap</span>:</td>
|
| 162 |
<td>
|
181 |
<td>
|
| 163 |
<select id="selWordWrap" name="selAlignment">
|
182 |
<select id="selWordWrap">
|
| 164 |
<option fcklang="DlgCellWordWrapYes" value="true" selected="selected">Yes</option>
|
183 |
<option fcklang="DlgCellWordWrapYes" value="true" selected="selected">Yes</option>
|
| 165 |
<option fcklang="DlgCellWordWrapNo" value="false">No</option>
|
184 |
<option fcklang="DlgCellWordWrapNo" value="false">No</option>
|
| 166 |
</select></td>
|
185 |
</select></td>
|
| 167 |
</tr>
|
186 |
</tr>
|
| 168 |
<tr>
|
187 |
<tr>
|
| Line 173... |
Line 192... |
| 173 |
</tr>
|
192 |
</tr>
|
| 174 |
<tr>
|
193 |
<tr>
|
| 175 |
<td nowrap="nowrap">
|
194 |
<td nowrap="nowrap">
|
| 176 |
<span fcklang="DlgCellHorAlign">Horizontal Alignment</span>:</td>
|
195 |
<span fcklang="DlgCellHorAlign">Horizontal Alignment</span>:</td>
|
| 177 |
<td>
|
196 |
<td>
|
| 178 |
<select id="selHAlign" name="selAlignment">
|
197 |
<select id="selHAlign">
|
| 179 |
<option fcklang="DlgCellHorAlignNotSet" value="" selected><Not set></option>
|
198 |
<option fcklang="DlgCellHorAlignNotSet" value="" selected><Not set></option>
|
| 180 |
<option fcklang="DlgCellHorAlignLeft" value="left">Left</option>
|
199 |
<option fcklang="DlgCellHorAlignLeft" value="left">Left</option>
|
| 181 |
<option fcklang="DlgCellHorAlignCenter" value="center">Center</option>
|
200 |
<option fcklang="DlgCellHorAlignCenter" value="center">Center</option>
|
| 182 |
<option fcklang="DlgCellHorAlignRight" value="right">Right</option>
|
201 |
<option fcklang="DlgCellHorAlignRight" value="right">Right</option>
|
| 183 |
</select></td>
|
202 |
</select></td>
|
| 184 |
</tr>
|
203 |
</tr>
|
| 185 |
<tr>
|
204 |
<tr>
|
| 186 |
<td nowrap="nowrap">
|
205 |
<td nowrap="nowrap">
|
| 187 |
<span fcklang="DlgCellVerAlign">Vertical Alignment</span>:</td>
|
206 |
<span fcklang="DlgCellVerAlign">Vertical Alignment</span>:</td>
|
| 188 |
<td>
|
207 |
<td>
|
| 189 |
<select id="selVAlign" name="selAlignment">
|
208 |
<select id="selVAlign">
|
| 190 |
<option fcklang="DlgCellVerAlignNotSet" value="" selected><Not set></option>
|
209 |
<option fcklang="DlgCellVerAlignNotSet" value="" selected><Not set></option>
|
| 191 |
<option fcklang="DlgCellVerAlignTop" value="top">Top</option>
|
210 |
<option fcklang="DlgCellVerAlignTop" value="top">Top</option>
|
| 192 |
<option fcklang="DlgCellVerAlignMiddle" value="middle">Middle</option>
|
211 |
<option fcklang="DlgCellVerAlignMiddle" value="middle">Middle</option>
|
| 193 |
<option fcklang="DlgCellVerAlignBottom" value="bottom">Bottom</option>
|
212 |
<option fcklang="DlgCellVerAlignBottom" value="bottom">Bottom</option>
|
| 194 |
<option fcklang="DlgCellVerAlignBaseline" value="baseline">Baseline</option>
|
213 |
<option fcklang="DlgCellVerAlignBaseline" value="baseline">Baseline</option>
|
| Line 200... |
Line 219... |
| 200 |
</td>
|
219 |
</td>
|
| 201 |
<td align="right">
|
220 |
<td align="right">
|
| 202 |
<table cellspacing="0" cellpadding="0" border="0">
|
221 |
<table cellspacing="0" cellpadding="0" border="0">
|
| 203 |
<tr>
|
222 |
<tr>
|
| 204 |
<td nowrap="nowrap">
|
223 |
<td nowrap="nowrap">
|
| - |
|
224 |
<span fcklang="DlgCellType">Cell Type</span>:</td>
|
| - |
|
225 |
<td colspan="2">
|
| - |
|
226 |
<select id="selCellType">
|
| - |
|
227 |
<option fcklang="DlgCellTypeData" value="td" />Data
|
| - |
|
228 |
<option fcklang="DlgCellTypeHeader" value="th" />Header
|
| - |
|
229 |
</select>
|
| - |
|
230 |
</tr>
|
| - |
|
231 |
<tr>
|
| - |
|
232 |
<td>
|
| - |
|
233 |
</td>
|
| - |
|
234 |
<td>
|
| - |
|
235 |
</td>
|
| - |
|
236 |
<td>
|
| - |
|
237 |
</td>
|
| - |
|
238 |
</tr>
|
| - |
|
239 |
<tr>
|
| - |
|
240 |
<td nowrap="nowrap">
|
| 205 |
<span fcklang="DlgCellRowSpan">Rows Span</span>:</td>
|
241 |
<span fcklang="DlgCellRowSpan">Rows Span</span>:</td>
|
| 206 |
<td>
|
242 |
<td>
|
| 207 |
|
243 |
|
| 208 |
<input onkeypress="return IsDigit(event);" id="txtRowSpan" type="text" maxlength="3" size="2"
|
244 |
<input onkeypress="return IsDigit(event);" id="txtRowSpan" type="text" maxlength="3" size="2"
|
| 209 |
name="txtRows"></td>
|
245 |
></td>
|
| 210 |
<td>
|
246 |
<td>
|
| 211 |
</td>
|
247 |
</td>
|
| 212 |
</tr>
|
248 |
</tr>
|
| 213 |
<tr>
|
249 |
<tr>
|
| 214 |
<td nowrap="nowrap">
|
250 |
<td nowrap="nowrap">
|
| 215 |
<span fcklang="DlgCellCollSpan">Columns Span</span>:</td>
|
251 |
<span fcklang="DlgCellCollSpan">Columns Span</span>:</td>
|
| 216 |
<td>
|
252 |
<td>
|
| 217 |
|
253 |
|
| 218 |
<input onkeypress="return IsDigit(event);" id="txtCollSpan" type="text" maxlength="2"
|
254 |
<input onkeypress="return IsDigit(event);" id="txtCollSpan" type="text" maxlength="2"
|
| 219 |
size="2" name="txtColumns"></td>
|
255 |
size="2"></td>
|
| 220 |
<td>
|
256 |
<td>
|
| 221 |
</td>
|
257 |
</td>
|
| 222 |
</tr>
|
258 |
</tr>
|
| 223 |
<tr>
|
259 |
<tr>
|
| 224 |
<td>
|
260 |
<td>
|
| Line 230... |
Line 266... |
| 230 |
</tr>
|
266 |
</tr>
|
| 231 |
<tr>
|
267 |
<tr>
|
| 232 |
<td nowrap="nowrap">
|
268 |
<td nowrap="nowrap">
|
| 233 |
<span fcklang="DlgCellBackColor">Background Color</span>:</td>
|
269 |
<span fcklang="DlgCellBackColor">Background Color</span>:</td>
|
| 234 |
<td>
|
270 |
<td>
|
| 235 |
<input id="txtBackColor" type="text" size="8" name="txtCellSpacing"></td>
|
271 |
<input id="txtBackColor" type="text" size="8" /></td>
|
| 236 |
<td>
|
272 |
<td>
|
| 237 |
|
273 |
|
| 238 |
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Back' )"></td>
|
274 |
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Back' )"></td>
|
| 239 |
</tr>
|
275 |
</tr>
|
| 240 |
<tr>
|
276 |
<tr>
|
| 241 |
<td nowrap="nowrap">
|
277 |
<td nowrap="nowrap">
|
| 242 |
<span fcklang="DlgCellBorderColor">Border Color</span>:</td>
|
278 |
<span fcklang="DlgCellBorderColor">Border Color</span>:</td>
|
| 243 |
<td>
|
279 |
<td>
|
| 244 |
<input id="txtBorderColor" type="text" size="8" name="txtCellPadding" /></td>
|
280 |
<input id="txtBorderColor" type="text" size="8" /></td>
|
| 245 |
<td>
|
281 |
<td>
|
| 246 |
|
282 |
|
| 247 |
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Border' )" /></td>
|
283 |
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Border' )" /></td>
|
| 248 |
</tr>
|
284 |
</tr>
|
| 249 |
</table>
|
285 |
</table>
|