From 3931c3865fb48312eb7316e6f0f8fbcbdb522a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Fri, 24 Dec 2010 01:57:07 +0100 Subject: [PATCH] Feature #2479 delete ancient files --- .../editor/plugins/insertHtml/help.txt | 26 ----- .../insertHtml/insertHtml/fckplugin.js | 44 ------- .../insertHtml/images/toolbarIcon_default.gif | Bin 159 -> 0 bytes .../images/toolbarIcon_famfamfam.gif | Bin 249 -> 0 bytes .../insertHtml/insertHtml/insertHtml.html | 75 ------------ .../insertHtml/insertHtml/insertHtml.js | 110 ------------------ .../plugins/insertHtml/insertHtml/lang/en.js | 6 - .../plugins/insertHtml/insertHtml/lang/nl.js | 5 - 8 files changed, 266 deletions(-) delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/help.txt delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/fckplugin.js delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/images/toolbarIcon_default.gif delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/images/toolbarIcon_famfamfam.gif delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.html delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.js delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/en.js delete mode 100644 main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/nl.js diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/help.txt b/main/inc/lib/fckeditor/editor/plugins/insertHtml/help.txt deleted file mode 100644 index 28349ec8b3..0000000000 --- a/main/inc/lib/fckeditor/editor/plugins/insertHtml/help.txt +++ /dev/null @@ -1,26 +0,0 @@ -Plugin for inserting HTML: a single preconfigured snippet; a choice from multiple preconfigured snippets; or manually entered HTML - -Move the folder 'insertHtml' into your plugins directory ('editor/plugins/') and add+configure the plugin in your fckconfig.js file by using the example below: - -FCKConfig.Plugins.Add('insertHtml', 'en,nl'); - // --- config settings for the insertHtml plugin --- - // enter a single snippet (HMTL string) or multiple snippets to choose form (object of description string and HTML string pairs) - // or leave empty if you want to show a dialog for the user to enter HTML manually (and not show any default HTML in the dialog textarea) - FCKConfig.insertHtml_snippets = { - 'ArtGallery': '', - 'PhotoFlowGallery' : '', - 'StackPhotoGallery' : '', - 'ZenGallery' : '' - }; - // show a dialog for the user to enter HTML manually or to choose between snippets - // (if no snippets specified the dialog will show anyhow) - FCKConfig.insertHtml_showDialog = true; - // specify a custom tooltip if you want this to appear when hovering the plugin's toolbar button (e.g. a description of the element being inserted) - // (if no custom tooltip is set 'Insert HTML' will appear, and if available, translated into your language) - FCKConfig.insertHtml_buttonTooltip = ''; - // show a textarea in the dialog? (the (first) HTML set with FCKConfig.insertHtml_snippets will be shown in the textarea by default) - // (if no snippets specified the textarea will show anyhow) - FCKConfig.insertHtml_showTextarea = false; - // the size of the textarea in the dialog, in px - FCKConfig.insertHtml_textareaWidth = 300; - FCKConfig.insertHtml_textareaHeight = 70; diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/fckplugin.js b/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/fckplugin.js deleted file mode 100644 index 9edec7f690..0000000000 --- a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/fckplugin.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed under the terms of the GNU Lesser General Public License: - * http://www.opensource.org/licenses/lgpl-license.php - * - * File Name: fckplugin.js - * Plugin to add some HTML, a single snippet; a choice from multiple snippets; or manually entered HTML - * - * File Authors: - * Paul Moers (http://www.saulmade.nl/FCKeditor/FCKPlugins.php) - */ - - // insertHtmlObject constructor - var insertHtmlToolbarCommand = function() - { - } - - // register the command - FCKCommands.RegisterCommand('insertHtml', new insertHtmlToolbarCommand()); - - // create the toolbar button - var insertHtmlButton = new FCKToolbarButton('insertHtml', FCKConfig.insertHtml_buttonTooltip || FCKLang.inserHTML_buttonTooltip); - insertHtmlButton.IconPath = FCKPlugins.Items['insertHtml'].Path + 'images/toolbarIcon_default.gif'; // or pick any other in folder 'images' - FCKToolbarItems.RegisterItem('insertHtml', insertHtmlButton); - - // manage the plugins' button behavior - insertHtmlToolbarCommand.prototype.GetState = function() - { - return FCK_TRISTATE_OFF; - } - - // insertHtml's button click function - insertHtmlToolbarCommand.prototype.Execute = function() - { - if (FCKConfig.insertHtml_showDialog || !FCKConfig.insertHtml_snippets || (FCKConfig.insertHtml_snippets && !FCKConfig.insertHtml_snippets.length)) - { - var dialog = new FCKDialogCommand('insertHtml', FCKLang.insertHtml_dialogTitle, FCKPlugins.Items['insertHtml'].Path + 'insertHtml.html', 200, 100); - dialog.Execute(); - } - else - { - FCK.InsertHtml(FCKConfig.insertHtml_snippet); - FCK.EditorWindow.parent.FCKUndo.SaveUndoStep(); - } - } diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/images/toolbarIcon_default.gif b/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/images/toolbarIcon_default.gif deleted file mode 100644 index 27fb0d041c24bc5cd6fa0ce5c4fafe60e9401974..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 159 zcmZ?wbhEHb6krfw*v!Gu+FBDA7k=Yr&C8cPhYqEG|32f_udnXzPXGV^XTSy&f3h$# zFmN#FfFwa?FtGT1P*CY#y7`f=Cc~`KLdK5LjAdDKs>*_Ox(aorcNpG^T=#lPq-(iC t7njG9qtiF5a5p;!dh|rGwkTazdQrCd*wR)9HT{{1vkH!7A6H_q1_06lI5z+Q diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/images/toolbarIcon_famfamfam.gif b/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/images/toolbarIcon_famfamfam.gif deleted file mode 100644 index c3371f3ddafd17a073631e2a850acbcf73556d98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 249 zcmVB%86*!E7Z4Vk76Strl_;X4CLsVj84Y>W diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.html b/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.html deleted file mode 100644 index cb859a2f94..0000000000 --- a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - insertHtml - - - - - - - - - - - - - - - - - - - -
- - Enter any HTML below and click 'ok' to insert it at the location of the cursor in the editor. - -
-
- - - \ No newline at end of file diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.js b/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.js deleted file mode 100644 index bb2046d0ff..0000000000 --- a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/insertHtml.js +++ /dev/null @@ -1,110 +0,0 @@ - - - var dialog = window.parent; - var editorWindow = dialog.InnerDialogLoaded(); - var editorInstance = editorWindow.FCK; - var FCKConfig = editorWindow.FCKConfig; - var FCKTools = editorWindow.FCKTools; - var FCKBrowserInfo = editorWindow.FCKBrowserInfo; - - - // onload - window.onload = function() - { - var description, snippet; - - // show snippets to choose from - if (typeof(FCKConfig.insertHtml_snippets) == 'object') - { - var snippetsDiv, snippetDiv, numberOfSnippets = 0; - - snippetsDiv = document.createElement('div'); - snippetsDiv.id = 'snippets'; - - for (description in FCKConfig.insertHtml_snippets) - { - snippetDiv = document.createElement('div'); - snippetDiv.innerHTML = description; - snippetDiv.className = 'snippet'; - snippetDiv.snippet = FCKConfig.insertHtml_snippets[description]; - snippetDiv.onmouseover = function(){this.className += ' PopupSelectionBox'}; - snippetDiv.onmouseout = function(){this.className = this.className.replace(/\s?PopupSelectionBox\s?/, '')}; - if (FCKConfig.insertHtml_showTextarea) - { - snippetDiv.onclick = function(){ - document.getElementById('insertHtmlTextArea').value = this.snippet; - }; - } - else - { - snippetDiv.onclick = function(){ - editorInstance.InsertHtml(this.snippet); - editorWindow.FCKUndo.SaveUndoStep(); - dialog.CloseDialog(); - }; - } - snippetsDiv.appendChild(snippetDiv); - - numberOfSnippets++; - } - document.getElementById('content').appendChild(snippetsDiv); - - // load dialog - } - - // show textarea - if (FCKConfig.insertHtml_showTextarea || !FCKConfig.insertHtml_snippets || !numberOfSnippets) - { - insertHtmlTextArea = document.createElement('textarea'); - insertHtmlTextArea.id = 'insertHtmlTextArea'; - document.getElementById('content').appendChild(insertHtmlTextArea); - // set the size of the textarea - insertHtmlTextArea.style.width = (FCKConfig.insertHtml_textareaWidth || 300) + 'px'; - insertHtmlTextArea.style.height = (FCKConfig.insertHtml_textareaHeight || 100) + 'px'; - // load default content - if (typeof(FCKConfig.insertHtml_snippets) == 'object') - { - for (description in FCKConfig.insertHtml_snippets) - { - snippet = FCKConfig.insertHtml_snippets[description]; - break; - } - } - else - { - snippet = FCKConfig.insertHtml_snippets; - } - insertHtmlTextArea.value = snippet; - } - - // resize around snippets and/or textarea - // for IE this must be done before translating the dialog or the dialog will be to wide; also IE needs an approximate resize before autofitting or the dialog width will be to large - if (FCKBrowserInfo.IsIE) dialog.Sizer.ResizeDialog(parseInt(FCKConfig.insertHtml_textareaWidth || 300), parseInt(FCKConfig.insertHtml_textareaHeight || 100) + 130); - dialog.SetAutoSize(true); - - // recenter dialog - setTimeout(function(){ // after a dummy delay, needed for webkit - var topWindowSize = FCKTools.GetViewPaneSize(dialog.top.window); - dialog.frameElement.style.left = Math.round((topWindowSize.Width - dialog.frameElement.offsetWidth) / 2) + 'px'; - dialog.frameElement.style.top = Math.round((topWindowSize.Height - dialog.frameElement.offsetHeight) / 2).toString() + 'px';; - }, 0); - - // translate the dialog box texts - editorWindow.FCKLanguageManager.TranslatePage(document); - - // activate the "OK" button - dialog.SetOkButton(true); - } - - // dialog's 'ok' button function to insert the Html - function Ok() - { - if (insertHtmlTextArea.value) - { - editorInstance.InsertHtml(insertHtmlTextArea.value); - editorWindow.FCKUndo.SaveUndoStep(); - - return true; // makes the dialog to close - } - } - diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/en.js b/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/en.js deleted file mode 100644 index 806bd5f22d..0000000000 --- a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/en.js +++ /dev/null @@ -1,6 +0,0 @@ - - - FCKLang.inserHTML_buttonTooltip = 'Insert HTML'; - FCKLang.insertHtml_dialogTitle = 'Insert HTML'; - FCKLang.inserHtml_help = 'Enter any HTML below and click \'ok\' to insert it at the location of the cursor in the editor.'; - diff --git a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/nl.js b/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/nl.js deleted file mode 100644 index 81ed192533..0000000000 --- a/main/inc/lib/fckeditor/editor/plugins/insertHtml/insertHtml/lang/nl.js +++ /dev/null @@ -1,5 +0,0 @@ - - - FCKLang.inserHTML_buttonTooltip = 'HTML invoegen'; - FCKLang.insertHtml_dialogTitle = 'HTML invoegen'; - FCKLang.inserHtml_help = 'Geef HTML code in en klik op \'ok\' om de code in te voegen op de locatie van de cursor in de editor.';