summaryrefslogtreecommitdiff
path: root/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder')
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fck_placeholder.html105
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fckplugin.js187
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/de.js27
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/en.js27
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/es.js27
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/fr.js27
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/it.js27
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/pl.js27
-rw-r--r--rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/placeholder.gifbin96 -> 0 bytes
9 files changed, 0 insertions, 454 deletions
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fck_placeholder.html b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fck_placeholder.html
deleted file mode 100644
index 0f83984..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fck_placeholder.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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 ==
- *
- * Placeholder Plugin.
--->
-<html>
- <head>
- <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 dialog = window.parent ;
-var oEditor = dialog.InnerDialogLoaded() ;
-var FCKLang = oEditor.FCKLang ;
-var FCKPlaceholders = oEditor.FCKPlaceholders ;
-
-window.onload = function ()
-{
- // First of all, translate the dialog box texts
- oEditor.FCKLanguageManager.TranslatePage( document ) ;
-
- LoadSelected() ;
-
- // Show the "Ok" button.
- dialog.SetOkButton( true ) ;
-
- // Select text field on load.
- SelectField( 'txtName' ) ;
-}
-
-var eSelected = dialog.Selection.GetSelectedElement() ;
-
-function LoadSelected()
-{
- if ( !eSelected )
- return ;
-
- if ( eSelected.tagName == 'SPAN' && eSelected._fckplaceholder )
- document.getElementById('txtName').value = eSelected._fckplaceholder ;
- else
- eSelected == null ;
-}
-
-function Ok()
-{
- var sValue = document.getElementById('txtName').value ;
-
- if ( eSelected && eSelected._fckplaceholder == sValue )
- return true ;
-
- if ( sValue.length == 0 )
- {
- alert( FCKLang.PlaceholderErrNoName ) ;
- return false ;
- }
-
- if ( FCKPlaceholders.Exist( sValue ) )
- {
- alert( FCKLang.PlaceholderErrNameInUse ) ;
- return false ;
- }
-
- FCKPlaceholders.Add( sValue ) ;
- return true ;
-}
-
- </script>
- </head>
- <body scroll="no" style="OVERFLOW: hidden">
- <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <tr>
- <td>
- <table cellSpacing="0" cellPadding="0" align="center" border="0">
- <tr>
- <td>
- <span fckLang="PlaceholderDlgName">Placeholder Name</span><br>
- <input id="txtName" type="text">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
-</html>
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fckplugin.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fckplugin.js
deleted file mode 100644
index b61a5b3..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/fckplugin.js
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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 ==
- *
- * Plugin to insert "Placeholders" in the editor.
- */
-
-// Register the related command.
-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 ) ;
-oPlaceholderItem.IconPath = FCKPlugins.Items['placeholder'].Path + 'placeholder.gif' ;
-
-FCKToolbarItems.RegisterItem( 'Placeholder', oPlaceholderItem ) ;
-
-
-// The object used for all Placeholder operations.
-var FCKPlaceholders = new Object() ;
-
-// Add a new placeholder at the actual selection.
-FCKPlaceholders.Add = function( name )
-{
- var oSpan = FCK.InsertElement( 'span' ) ;
- this.SetupSpan( oSpan, name ) ;
-}
-
-FCKPlaceholders.SetupSpan = function( span, name )
-{
- span.innerHTML = '[[ ' + name + ' ]]' ;
-
- span.style.backgroundColor = '#ffff00' ;
- span.style.color = '#000000' ;
-
- if ( FCKBrowserInfo.IsGecko )
- span.style.cursor = 'default' ;
-
- span._fckplaceholder = name ;
- span.contentEditable = false ;
-
- // To avoid it to be resized.
- span.onresizestart = function()
- {
- FCK.EditorWindow.event.returnValue = false ;
- return false ;
- }
-}
-
-// On Gecko we must do this trick so the user select all the SPAN when clicking on it.
-FCKPlaceholders._SetupClickListener = function()
-{
- FCKPlaceholders._ClickListener = function( e )
- {
- if ( e.target.tagName == 'SPAN' && e.target._fckplaceholder )
- FCKSelection.SelectNode( e.target ) ;
- }
-
- FCK.EditorDocument.addEventListener( 'click', FCKPlaceholders._ClickListener, true ) ;
-}
-
-// Open the Placeholder dialog on double click.
-FCKPlaceholders.OnDoubleClick = function( span )
-{
- if ( span.tagName == 'SPAN' && span._fckplaceholder )
- FCKCommands.GetCommand( 'Placeholder' ).Execute() ;
-}
-
-FCK.RegisterDoubleClickHandler( FCKPlaceholders.OnDoubleClick, 'SPAN' ) ;
-
-// Check if a Placholder name is already in use.
-FCKPlaceholders.Exist = function( name )
-{
- var aSpans = FCK.EditorDocument.getElementsByTagName( 'SPAN' ) ;
-
- for ( var i = 0 ; i < aSpans.length ; i++ )
- {
- if ( aSpans[i]._fckplaceholder == name )
- return true ;
- }
-
- return false ;
-}
-
-if ( FCKBrowserInfo.IsIE )
-{
- FCKPlaceholders.Redraw = function()
- {
- if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
- return ;
-
- var aPlaholders = FCK.EditorDocument.body.innerText.match( /\[\[[^\[\]]+\]\]/g ) ;
- if ( !aPlaholders )
- return ;
-
- var oRange = FCK.EditorDocument.body.createTextRange() ;
-
- for ( var i = 0 ; i < aPlaholders.length ; i++ )
- {
- if ( oRange.findText( aPlaholders[i] ) )
- {
- var sName = aPlaholders[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ;
- oRange.pasteHTML( '<span style="color: #000000; background-color: #ffff00" contenteditable="false" _fckplaceholder="' + sName + '">' + aPlaholders[i] + '</span>' ) ;
- }
- }
- }
-}
-else
-{
- FCKPlaceholders.Redraw = function()
- {
- if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
- return ;
-
- var oInteractor = FCK.EditorDocument.createTreeWalker( FCK.EditorDocument.body, NodeFilter.SHOW_TEXT, FCKPlaceholders._AcceptNode, true ) ;
-
- var aNodes = new Array() ;
-
- while ( ( oNode = oInteractor.nextNode() ) )
- {
- aNodes[ aNodes.length ] = oNode ;
- }
-
- for ( var n = 0 ; n < aNodes.length ; n++ )
- {
- var aPieces = aNodes[n].nodeValue.split( /(\[\[[^\[\]]+\]\])/g ) ;
-
- for ( var i = 0 ; i < aPieces.length ; i++ )
- {
- if ( aPieces[i].length > 0 )
- {
- if ( aPieces[i].indexOf( '[[' ) == 0 )
- {
- var sName = aPieces[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ;
-
- var oSpan = FCK.EditorDocument.createElement( 'span' ) ;
- FCKPlaceholders.SetupSpan( oSpan, sName ) ;
-
- aNodes[n].parentNode.insertBefore( oSpan, aNodes[n] ) ;
- }
- else
- aNodes[n].parentNode.insertBefore( FCK.EditorDocument.createTextNode( aPieces[i] ) , aNodes[n] ) ;
- }
- }
-
- aNodes[n].parentNode.removeChild( aNodes[n] ) ;
- }
-
- FCKPlaceholders._SetupClickListener() ;
- }
-
- FCKPlaceholders._AcceptNode = function( node )
- {
- if ( /\[\[[^\[\]]+\]\]/.test( node.nodeValue ) )
- return NodeFilter.FILTER_ACCEPT ;
- else
- return NodeFilter.FILTER_SKIP ;
- }
-}
-
-FCK.Events.AttachEvent( 'OnAfterSetHTML', FCKPlaceholders.Redraw ) ;
-
-// We must process the SPAN tags to replace then with the real resulting value of the placeholder.
-FCKXHtml.TagProcessors['span'] = function( node, htmlNode )
-{
- if ( htmlNode._fckplaceholder )
- node = FCKXHtml.XML.createTextNode( '[[' + htmlNode._fckplaceholder + ']]' ) ;
- else
- FCKXHtml._AppendChildNodes( node, htmlNode, false ) ;
-
- return node ;
-}
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/de.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/de.js
deleted file mode 100644
index d55bee4..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/de.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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 German language file.
- */
-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' ;
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/en.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/en.js
deleted file mode 100644
index 466c0c8..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/en.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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 English language file.
- */
-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' ;
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/es.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/es.js
deleted file mode 100644
index 7a0e0e0..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/es.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/fr.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/fr.js
deleted file mode 100644
index 4a2bd20..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/fr.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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 ==
- *
- * Placeholder French language file.
- */
-FCKLang.PlaceholderBtn = "Insérer/Modifier l'Espace réservé" ;
-FCKLang.PlaceholderDlgTitle = "Propriétés de l'Espace réservé" ;
-FCKLang.PlaceholderDlgName = "Nom de l'Espace réservé" ;
-FCKLang.PlaceholderErrNoName = "Veuillez saisir le nom de l'Espace réservé" ;
-FCKLang.PlaceholderErrNameInUse = "Ce nom est déjà utilisé" ;
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/it.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/it.js
deleted file mode 100644
index 007e2d0..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/it.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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 Italian language file.
- */
-FCKLang.PlaceholderBtn = 'Aggiungi/Modifica Placeholder' ;
-FCKLang.PlaceholderDlgTitle = 'Proprietà del Placeholder' ;
-FCKLang.PlaceholderDlgName = 'Nome del Placeholder' ;
-FCKLang.PlaceholderErrNoName = 'Digitare il nome del placeholder' ;
-FCKLang.PlaceholderErrNameInUse = 'Il nome inserito è già in uso' ;
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/pl.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/pl.js
deleted file mode 100644
index 90fa3e9..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/lang/pl.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2009 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 Polish language file.
- */
-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' ;
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/placeholder.gif b/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/placeholder.gif
deleted file mode 100644
index c07078c..0000000
--- a/rt/share/html/NoAuth/RichText/FCKeditor/editor/plugins/placeholder/placeholder.gif
+++ /dev/null
Binary files differ