[!!!][TASK] RTE: Remove synchronous load from plugin API 74/40574/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 23 Jun 2015 20:19:52 +0000 (22:19 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Tue, 23 Jun 2015 20:51:57 +0000 (22:51 +0200)
This information is never used for anything.

Resolves: #67713
Releases: master
Change-Id: I0bae25130f329c39a2ab571aaa1e13a3efb26240
Reviewed-on: http://review.typo3.org/40574
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/rtehtmlarea/Classes/Extension/DefaultInline.php
typo3/sysext/rtehtmlarea/Classes/Extension/DefinitionList.php
typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaApi.php

index 2f326d8..66d6116 100644 (file)
@@ -69,7 +69,7 @@ class DefaultInline extends RteHtmlAreaApi {
        }
 
        /**
-        * Return tranformed content
+        * Return transformed content
         *
         * @param string $content: The content that is about to be sent to the RTE
         * @return string the transformed content
index 1a5c586..fabdb17 100644 (file)
@@ -62,11 +62,7 @@ class DefinitionList extends RteHtmlAreaApi {
         * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
         */
        public function main($parentObject) {
-               $enabled = parent::main($parentObject) && $this->htmlAreaRTE->isPluginEnabled('BlockElements');
-               if ($enabled && is_object($this->htmlAreaRTE->registeredPlugins['BlockElements'])) {
-                       $this->htmlAreaRTE->registeredPlugins['BlockElements']->setSynchronousLoad();
-               }
-               return $enabled;
+               return (parent::main($parentObject) && $this->htmlAreaRTE->isPluginEnabled('BlockElements'));
        }
 
        /**
index 8e4b444..8d0422e 100644 (file)
@@ -130,13 +130,6 @@ abstract class RteHtmlAreaApi {
        protected $requiresClassesConfiguration = FALSE;
 
        /**
-        * TRUE if the plugin must be loaded synchronously
-        *
-        * @var bool
-        */
-       protected $requiresSynchronousLoad = FALSE;
-
-       /**
         * The comma-separated list of names of prerequisite plugins
         *
         * @var string
@@ -289,25 +282,6 @@ abstract class RteHtmlAreaApi {
        }
 
        /**
-        * Returns TRUE if the plugin requires synchronous load
-        *
-        * @return bool TRUE if the plugin requires synchronous load
-        */
-       public function requiresSynchronousLoad() {
-               return $this->requiresSynchronousLoad;
-       }
-
-       /**
-        * Sets the plugin to require synchronous load or not
-        *
-        * @param bool $value: the boolean value to set
-        * @return void
-        */
-       public function setSynchronousLoad($value = TRUE) {
-               $this->requiresSynchronousLoad = $value;
-       }
-
-       /**
         * Returns the list of plugins required by the plugin
         *
         * @return string the list of plugins required by the plugin