[TASK] RTE: Cleanup references to AllowClipboardHelper for Mozilla 55/33755/2
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 3 Nov 2014 16:57:52 +0000 (11:57 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 3 Nov 2014 16:59:19 +0000 (17:59 +0100)
Support for allowClipboard policy has been removed from Firefox since
version 29. This is a follow-up to change
https://review.typo3.org/#/c/33367/

Relaeses: master, 6.2
Resolves: #62296
Change-Id: I71941c911bc9596495dfea5839d3dba678463357
Reviewed-on: http://review.typo3.org/33755
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/Classes/Extension/CopyPaste.php
typo3/sysext/rtehtmlarea/Documentation/Configuration/PageTsconfig/interfaceConfiguration/Index.rst
typo3/sysext/rtehtmlarea/ext_localconf.php

index ca04067..da0c27c 100644 (file)
@@ -71,29 +71,6 @@ class CopyPaste extends \TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi {
        }
 
        /**
-        * Return JS configuration of the htmlArea plugins registered by the extension
-        *
-        * @param       integer         Relative id of the RTE editing area in the form
-        * @return string               JS configuration for registered plugins
-        */
-       public function buildJavascriptConfiguration($RTEcounter) {
-               $registerRTEinJavascriptString = '';
-               $button = 'paste';
-               if ($this->htmlAreaRTE->client['browser'] == 'gecko') {
-                       $mozillaAllowClipboardURL = $this->thisConfig['buttons.'][$button . '.']['mozillaAllowClipboardURL'] ?: $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extensionKey]['plugins']['CopyPaste']['mozillaAllowClipboardURL'];
-                       if ($mozillaAllowClipboardURL) {
-                               if (!is_array($this->thisConfig['buttons.']) || !is_array($this->thisConfig['buttons.'][($button . '.')])) {
-                                       $registerRTEinJavascriptString .= '
-                       RTEarea[' . $RTEcounter . '].buttons.' . $button . ' = new Object();';
-                               }
-                               $registerRTEinJavascriptString .= '
-                       RTEarea[' . $RTEcounter . '].buttons.' . $button . '.mozillaAllowClipboardURL = "' . $mozillaAllowClipboardURL . '";';
-                       }
-               }
-               return $registerRTEinJavascriptString;
-       }
-
-       /**
         * Return an updated array of toolbar enabled buttons
         *
         * @param       array           $show: array of toolbar elements that will be enabled, unless modified here
index 8e7470d..9b13fbc 100644 (file)
@@ -3895,29 +3895,6 @@ buttons.cellproperties.properties.borderStyle.removeItems
 
 
 
-.. _buttons-paste-mozillaallowclipboardurl:
-
-buttons.paste.mozillaAllowClipboardUrl
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-.. container:: table-row
-
-   Property
-         buttons.paste.mozillaAllowClipboardUrl
-   
-   Data type
-         url
-   
-   Description
-         The full absolute url of the AllowClipboard Helper extension for
-         Mozilla/Firefox. The browser extension is used to allow the RTE to
-         access the clipboard. The url is used to install the extension when
-         required.
-         
-         Default: http://typo3.org/fileadmin/allowclipboardhelper-0.6.xpi
-
-
-
 .. _buttons-pastetoggle-setactiveonrteopen:
 
 buttons.pastetoggle.setActiveOnRteOpen
index 5dcabf7..3d117a8 100644 (file)
@@ -235,4 +235,3 @@ $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['CopyPaste'] = array();
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['CopyPaste']['objectReference'] = '&TYPO3\\CMS\\Rtehtmlarea\\Extension\\CopyPaste';
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['CopyPaste']['addIconsToSkin'] = 0;
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['CopyPaste']['disableInFE'] = 0;
-$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['CopyPaste']['mozillaAllowClipboardURL'] = 'https://addons.mozilla.org/firefox/downloads/latest/852/addon-852-latest.xpi';