summaryrefslogtreecommitdiff
path: root/httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html')
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html b/httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html
index a334206..df8c563 100644
--- a/httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.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-2007 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
@@ -26,9 +26,11 @@
<title>Placeholder Properties</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="noindex, nofollow" name="robots">
+ <script src="../../dialog/common/fck_dialog_common.js" type="text/javascript"></script>
<script language="javascript">
-var oEditor = window.parent.InnerDialogLoaded() ;
+var dialog = window.parent ;
+var oEditor = dialog.InnerDialogLoaded() ;
var FCKLang = oEditor.FCKLang ;
var FCKPlaceholders = oEditor.FCKPlaceholders ;
@@ -40,10 +42,13 @@ window.onload = function ()
LoadSelected() ;
// Show the "Ok" button.
- window.parent.SetOkButton( true ) ;
+ dialog.SetOkButton( true ) ;
+
+ // Select text field on load.
+ SelectField( 'txtName' ) ;
}
-var eSelected = oEditor.FCKSelection.GetSelectedElement() ;
+var eSelected = dialog.Selection.GetSelectedElement() ;
function LoadSelected()
{
@@ -97,4 +102,4 @@ function Ok()
</tr>
</table>
</body>
-</html> \ No newline at end of file
+</html>