summaryrefslogtreecommitdiff
path: root/httemplate/elements/fckeditor/editor/plugins/placeholder
diff options
context:
space:
mode:
authormark <mark>2010-03-16 07:49:38 +0000
committermark <mark>2010-03-16 07:49:38 +0000
commit7a7bcda9d75c951df9c911ce60d5b0551765daf2 (patch)
tree6d3688ce272ee837653c00eda64c5691a4932e1f /httemplate/elements/fckeditor/editor/plugins/placeholder
parentc86fe9ea75d23d3d0c3536b709ac1e086f15a5de (diff)
FCKeditor 2.6.6
Diffstat (limited to 'httemplate/elements/fckeditor/editor/plugins/placeholder')
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html15
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js8
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/lang/de.js4
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/lang/en.js4
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/lang/es.js27
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/lang/fr.js2
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/lang/it.js2
-rw-r--r--httemplate/elements/fckeditor/editor/plugins/placeholder/lang/pl.js4
8 files changed, 49 insertions, 17 deletions
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html b/httemplate/elements/fckeditor/editor/plugins/placeholder/fck_placeholder.html
index a334206a5..df8c563d6 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>
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js
index 26489b872..ec4e1a510 100644
--- a/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js
@@ -1,6 +1,6 @@
/*
* 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 ==
*
@@ -22,7 +22,7 @@
*/
// Register the related command.
-FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 170 ) ) ;
+FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 160 ) ) ;
// Create the "Plaholder" toolbar button.
var oPlaceholderItem = new FCKToolbarButton( 'Placeholder', FCKLang.PlaceholderBtn ) ;
@@ -37,7 +37,7 @@ var FCKPlaceholders = new Object() ;
// Add a new placeholder at the actual selection.
FCKPlaceholders.Add = function( name )
{
- var oSpan = FCK.CreateElement( 'SPAN' ) ;
+ var oSpan = FCK.InsertElement( 'span' ) ;
this.SetupSpan( oSpan, name ) ;
}
@@ -184,4 +184,4 @@ FCKXHtml.TagProcessors['span'] = function( node, htmlNode )
FCKXHtml._AppendChildNodes( node, htmlNode, false ) ;
return node ;
-} \ No newline at end of file
+}
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/de.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/de.js
index a666f8b6a..aad19ba94 100644
--- a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/de.js
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/de.js
@@ -1,6 +1,6 @@
/*
* 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 ==
*
@@ -24,4 +24,4 @@ FCKLang.PlaceholderBtn = 'Einfügen/editieren Platzhalter' ;
FCKLang.PlaceholderDlgTitle = 'Platzhalter Eigenschaften' ;
FCKLang.PlaceholderDlgName = 'Platzhalter Name' ;
FCKLang.PlaceholderErrNoName = 'Bitte den Namen des Platzhalters schreiben' ;
-FCKLang.PlaceholderErrNameInUse = 'Der angegebene Namen ist schon in Gebrauch' ; \ No newline at end of file
+FCKLang.PlaceholderErrNameInUse = 'Der angegebene Namen ist schon in Gebrauch' ;
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/en.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/en.js
index 290a3fb3c..d716718fc 100644
--- a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/en.js
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/en.js
@@ -1,6 +1,6 @@
/*
* 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 ==
*
@@ -24,4 +24,4 @@ FCKLang.PlaceholderBtn = 'Insert/Edit Placeholder' ;
FCKLang.PlaceholderDlgTitle = 'Placeholder Properties' ;
FCKLang.PlaceholderDlgName = 'Placeholder Name' ;
FCKLang.PlaceholderErrNoName = 'Please type the placeholder name' ;
-FCKLang.PlaceholderErrNameInUse = 'The specified name is already in use' ; \ No newline at end of file
+FCKLang.PlaceholderErrNameInUse = 'The specified name is already in use' ;
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/es.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/es.js
new file mode 100644
index 000000000..eaf4b722f
--- /dev/null
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/es.js
@@ -0,0 +1,27 @@
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ * - GNU General Public License Version 2 or later (the "GPL")
+ * http://www.gnu.org/licenses/gpl.html
+ *
+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ * http://www.gnu.org/licenses/lgpl.html
+ *
+ * - Mozilla Public License Version 1.1 or later (the "MPL")
+ * http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Placholder Spanish language file.
+ */
+FCKLang.PlaceholderBtn = 'Insertar/Editar contenedor' ;
+FCKLang.PlaceholderDlgTitle = 'Propiedades del contenedor ' ;
+FCKLang.PlaceholderDlgName = 'Nombre de contenedor' ;
+FCKLang.PlaceholderErrNoName = 'Por favor escriba el nombre de contenedor' ;
+FCKLang.PlaceholderErrNameInUse = 'El nombre especificado ya esta en uso' ;
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/fr.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/fr.js
index f5ac26eb2..558793b53 100644
--- a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/fr.js
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/fr.js
@@ -1,6 +1,6 @@
/*
* 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 ==
*
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/it.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/it.js
index 51d75c034..ac0df551d 100644
--- a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/it.js
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/it.js
@@ -1,6 +1,6 @@
/*
* 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 ==
*
diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/pl.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/pl.js
index bc55b3801..40e221bee 100644
--- a/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/pl.js
+++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/lang/pl.js
@@ -1,6 +1,6 @@
/*
* 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 ==
*
@@ -24,4 +24,4 @@ FCKLang.PlaceholderBtn = 'Wstaw/Edytuj nagłówek' ;
FCKLang.PlaceholderDlgTitle = 'Właśności nagłówka' ;
FCKLang.PlaceholderDlgName = 'Nazwa nagłówka' ;
FCKLang.PlaceholderErrNoName = 'Proszę wprowadzić nazwę nagłówka' ;
-FCKLang.PlaceholderErrNameInUse = 'Podana nazwa jest już w użyciu' ; \ No newline at end of file
+FCKLang.PlaceholderErrNameInUse = 'Podana nazwa jest już w użyciu' ;