summaryrefslogtreecommitdiff
path: root/httemplate/elements/fckeditor/editor/dialog/fck_textarea.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/fckeditor/editor/dialog/fck_textarea.html')
-rw-r--r--httemplate/elements/fckeditor/editor/dialog/fck_textarea.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/httemplate/elements/fckeditor/editor/dialog/fck_textarea.html b/httemplate/elements/fckeditor/editor/dialog/fck_textarea.html
index 631fe27..b7de33a 100644
--- a/httemplate/elements/fckeditor/editor/dialog/fck_textarea.html
+++ b/httemplate/elements/fckeditor/editor/dialog/fck_textarea.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,13 +29,12 @@
<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() ;
// Gets the document DOM
var oDOM = oEditor.FCK.EditorDocument ;
-var oActiveEl = dialog.Selection.GetSelectedElement() ;
+var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
window.onload = function()
{
@@ -51,17 +50,18 @@ window.onload = function()
else
oActiveEl = null ;
- dialog.SetOkButton( true ) ;
- dialog.SetAutoSize( true ) ;
- SelectField( 'txtName' ) ;
+ window.parent.SetOkButton( true ) ;
}
function Ok()
{
- oEditor.FCKUndo.SaveUndoStep() ;
-
- oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'TEXTAREA', {name: GetE('txtName').value} ) ;
+ if ( !oActiveEl )
+ {
+ oActiveEl = oEditor.FCK.EditorDocument.createElement( 'TEXTAREA' ) ;
+ oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
+ }
+ oActiveEl.name = GetE('txtName').value ;
SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ;
SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ;
@@ -70,7 +70,7 @@ function Ok()
</script>
</head>
- <body style="overflow: hidden">
+ <body style='OVERFLOW: hidden' scroll='no'>
<table height="100%" width="100%">
<tr>
<td align="center">