summaryrefslogtreecommitdiff
path: root/httemplate/elements/fckeditor/editor/dialog/fck_tablecell.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/fckeditor/editor/dialog/fck_tablecell.html')
-rw-r--r--httemplate/elements/fckeditor/editor/dialog/fck_tablecell.html76
1 files changed, 19 insertions, 57 deletions
diff --git a/httemplate/elements/fckeditor/editor/dialog/fck_tablecell.html b/httemplate/elements/fckeditor/editor/dialog/fck_tablecell.html
index a4d1c97..b7c536b 100644
--- a/httemplate/elements/fckeditor/editor/dialog/fck_tablecell.html
+++ b/httemplate/elements/fckeditor/editor/dialog/fck_tablecell.html
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
@@ -29,10 +29,10 @@
<script src="common/fck_dialog_common.js" type="text/javascript"></script>
<script type="text/javascript">
-var dialog = window.parent ;
-var oEditor = dialog.InnerDialogLoaded() ;
+var oEditor = window.parent.InnerDialogLoaded() ;
-var FCKDomTools = oEditor.FCKDomTools ;
+// Gets the document DOM
+var oDOM = oEditor.FCK.EditorDocument ;
// Array of selected Cells
var aCells = oEditor.FCKTableHandler.GetSelectedCells() ;
@@ -44,9 +44,8 @@ window.onload = function()
SetStartupValue() ;
- dialog.SetOkButton( true ) ;
- dialog.SetAutoSize( true ) ;
- SelectField( 'txtWidth' ) ;
+ window.parent.SetOkButton( true ) ;
+ window.parent.SetAutoSize( true ) ;
}
function SetStartupValue()
@@ -73,15 +72,13 @@ function SetStartupValue()
GetE('txtCollSpan').value = GetAttribute( oCell, 'colSpan' ) ;
GetE('txtBackColor').value = GetAttribute( oCell, 'bgColor' ) ;
GetE('txtBorderColor').value = GetAttribute( oCell, 'borderColor' ) ;
- GetE('selCellType').value = oCell.nodeName.toLowerCase() ;
+// GetE('cmbFontStyle').value = oCell.className ;
}
}
// Fired when the user press the OK button
function Ok()
{
- oEditor.FCKUndo.SaveUndoStep() ;
-
for( i = 0 ; i < aCells.length ; i++ )
{
if ( GetE('txtWidth').value.length > 0 )
@@ -90,7 +87,7 @@ function Ok()
aCells[i].removeAttribute( 'width', 0 ) ;
if ( GetE('selWordWrap').value == 'false' )
- SetAttribute( aCells[i], 'noWrap', 'nowrap' ) ;
+ aCells[i].noWrap = true ;
else
aCells[i].removeAttribute( 'noWrap' ) ;
@@ -101,25 +98,7 @@ function Ok()
SetAttribute( aCells[i], 'colSpan' , GetE('txtCollSpan').value ) ;
SetAttribute( aCells[i], 'bgColor' , GetE('txtBackColor').value ) ;
SetAttribute( aCells[i], 'borderColor' , GetE('txtBorderColor').value ) ;
-
- var cellType = GetE('selCellType').value ;
- if ( aCells[i].nodeName.toLowerCase() != cellType )
- aCells[i] = RenameNode( aCells[i], cellType ) ;
- }
-
- // The cells need to be reselected, otherwise the caret will appear inside the table borders (Gecko)
- // or sent back to the beginning of the document (Opera and Safari).
- // Strangely, IE works ok so no change is needed for IE.
- if ( !oEditor.FCKBrowserInfo.IsIE )
- {
- var selection = oEditor.FCK.EditorWindow.getSelection() ;
- selection.removeAllRanges() ;
- for ( var i = 0 ; i < aCells.length ; i++ )
- {
- var range = oEditor.FCK.EditorDocument.createRange() ;
- range.selectNode( aCells[i] ) ;
- selection.addRange( range ) ;
- }
+// SetAttribute( aCells[i], 'className' , GetE('cmbFontStyle').value ) ;
}
return true ;
@@ -139,7 +118,7 @@ function SelectBorderColor( color )
function SelectColor( wich )
{
- oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', oEditor.FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, wich == 'Back' ? SelectBackColor : SelectBorderColor ) ;
+ oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', oEditor.FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, wich == 'Back' ? SelectBackColor : SelectBorderColor, window ) ;
}
</script>
@@ -157,7 +136,7 @@ function SelectColor( wich )
<span fcklang="DlgCellWidth">Width</span>:</td>
<td>
&nbsp;<input onkeypress="return IsDigit(event);" id="txtWidth" type="text" maxlength="4"
- size="3" />&nbsp;<select id="selWidthType">
+ size="3" name="txtWidth" />&nbsp;<select id="selWidthType" name="selWidthType">
<option fcklang="DlgCellWidthPx" value="pixels" selected="selected">pixels</option>
<option fcklang="DlgCellWidthPc" value="percent">percent</option>
</select></td>
@@ -166,7 +145,7 @@ function SelectColor( wich )
<td nowrap="nowrap">
<span fcklang="DlgCellHeight">Height</span>:</td>
<td>
- &nbsp;<input id="txtHeight" type="text" maxlength="4" size="3" onkeypress="return IsDigit(event);" />&nbsp;<span
+ &nbsp;<input id="txtHeight" type="text" maxlength="4" size="3" name="txtHeight" onkeypress="return IsDigit(event);" />&nbsp;<span
fcklang="DlgCellWidthPx">pixels</span></td>
</tr>
<tr>
@@ -179,7 +158,7 @@ function SelectColor( wich )
<td nowrap="nowrap">
<span fcklang="DlgCellWordWrap">Word Wrap</span>:</td>
<td>
- &nbsp;<select id="selWordWrap">
+ &nbsp;<select id="selWordWrap" name="selAlignment">
<option fcklang="DlgCellWordWrapYes" value="true" selected="selected">Yes</option>
<option fcklang="DlgCellWordWrapNo" value="false">No</option>
</select></td>
@@ -194,7 +173,7 @@ function SelectColor( wich )
<td nowrap="nowrap">
<span fcklang="DlgCellHorAlign">Horizontal Alignment</span>:</td>
<td>
- &nbsp;<select id="selHAlign">
+ &nbsp;<select id="selHAlign" name="selAlignment">
<option fcklang="DlgCellHorAlignNotSet" value="" selected>&lt;Not set&gt;</option>
<option fcklang="DlgCellHorAlignLeft" value="left">Left</option>
<option fcklang="DlgCellHorAlignCenter" value="center">Center</option>
@@ -205,7 +184,7 @@ function SelectColor( wich )
<td nowrap="nowrap">
<span fcklang="DlgCellVerAlign">Vertical Alignment</span>:</td>
<td>
- &nbsp;<select id="selVAlign">
+ &nbsp;<select id="selVAlign" name="selAlignment">
<option fcklang="DlgCellVerAlignNotSet" value="" selected>&lt;Not set&gt;</option>
<option fcklang="DlgCellVerAlignTop" value="top">Top</option>
<option fcklang="DlgCellVerAlignMiddle" value="middle">Middle</option>
@@ -221,28 +200,11 @@ function SelectColor( wich )
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td nowrap="nowrap">
- <span fcklang="DlgCellType">Cell Type</span>:</td>
- <td colspan="2">
- &nbsp; <select id="selCellType">
- <option fcklang="DlgCellTypeData" value="td">Data</option>
- <option fcklang="DlgCellTypeHeader" value="th">Header</option>
- </select>
- </tr>
- <tr>
- <td>
- &nbsp;</td>
- <td>
- &nbsp;</td>
- <td>
- &nbsp;</td>
- </tr>
- <tr>
- <td nowrap="nowrap">
<span fcklang="DlgCellRowSpan">Rows Span</span>:</td>
<td>
&nbsp;
<input onkeypress="return IsDigit(event);" id="txtRowSpan" type="text" maxlength="3" size="2"
- ></td>
+ name="txtRows"></td>
<td>
</td>
</tr>
@@ -252,7 +214,7 @@ function SelectColor( wich )
<td>
&nbsp;
<input onkeypress="return IsDigit(event);" id="txtCollSpan" type="text" maxlength="2"
- size="2"></td>
+ size="2" name="txtColumns"></td>
<td>
</td>
</tr>
@@ -268,7 +230,7 @@ function SelectColor( wich )
<td nowrap="nowrap">
<span fcklang="DlgCellBackColor">Background Color</span>:</td>
<td>
- &nbsp;<input id="txtBackColor" type="text" size="8" /></td>
+ &nbsp;<input id="txtBackColor" type="text" size="8" name="txtCellSpacing"></td>
<td>
&nbsp;
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Back' )"></td>
@@ -277,7 +239,7 @@ function SelectColor( wich )
<td nowrap="nowrap">
<span fcklang="DlgCellBorderColor">Border Color</span>:</td>
<td>
- &nbsp;<input id="txtBorderColor" type="text" size="8" /></td>
+ &nbsp;<input id="txtBorderColor" type="text" size="8" name="txtCellPadding" /></td>
<td>
&nbsp;
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Border' )" /></td>