php TYPO3-CMS-Rtehtmlarea-RteHtmlAreaApi类(方法)实例源码

下面列出了php TYPO3-CMS-Rtehtmlarea-RteHtmlAreaApi 类(方法)源码代码实例,从而了解它的用法。

作者:khanhdeu    项目:typo3tes   
public function main($parentObject)
 {
     if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('static_info_tables')) {
         $this->pluginButtons = \TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList('language', $this->pluginButtons);
     }
     return parent::main($parentObject);
 }

作者:plan2ne    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     if (!ExtensionManagementUtility::isLoaded('static_info_tables')) {
         $this->pluginButtons = GeneralUtility::rmFromList('language', $this->pluginButtons);
     }
     return parent::main($configuration);
 }

作者:adroll    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param RteHtmlAreaBase $parentObject parent object
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main($parentObject)
 {
     parent::main($parentObject);
     // Do not disable this plugin even if the chMode button is disabled
     $this->pluginAddsButtons = FALSE;
     return TRUE;
 }

作者:rickymathe    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     parent::main($configuration);
     // Do not disable this plugin even if the chMode button is disabled
     $this->pluginAddsButtons = false;
     return true;
 }

作者:khanhdeu    项目:typo3tes   
public function main($parentObject)
 {
     $enabled = parent::main($parentObject);
     // Check if this should be enabled based on extension configuration and Page TSConfig
     // The 'Minimal' and 'Typical' default configurations include Page TSConfig that removes images on the way to the database
     $enabled = $enabled && !($this->thisConfig['proc.']['entryHTMLparser_db.']['tags.']['img.']['allowedAttribs'] == '0' && $this->thisConfig['proc.']['entryHTMLparser_db.']['tags.']['img.']['rmTagIfNoAttrib'] == '1') && !$this->thisConfig['buttons.']['image.']['TYPO3Browser.']['disabled'];
     return $enabled;
 }

作者:nicksergi    项目:TYPO3v4-Cor   
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;
 }

作者:nicksergi    项目:TYPO3v4-Cor   
public function main($parentObject)
 {
     $available = parent::main($parentObject);
     if ($this->htmlAreaRTE->client['browser'] == 'opera') {
         $this->thisConfig['hideTableOperationsInToolbar'] = 0;
     }
     return $available;
 }

作者:nicksergi    项目:TYPO3v4-Cor   
public function main($parentObject)
 {
     $available = parent::main($parentObject);
     if ($this->thisConfig['disableSelectColor'] && $this->htmlAreaRTE->client['browser'] != 'gecko') {
         $this->requiredPlugins = 'DefaultColor';
     }
     return $available;
 }

作者:nicksergi    项目:TYPO3v4-Cor   
public function main($parentObject)
 {
     if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('static_info_tables') && file_exists(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php')) {
         require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php';
     } else {
         $this->pluginButtons = \TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList('language', $this->pluginButtons);
     }
     return parent::main($parentObject);
 }

作者:nicksergi    项目:TYPO3v4-Cor   
public function main($parentObject)
 {
     $enabled = parent::main($parentObject) && $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['allowStyleAttribute'];
     if ($this->htmlAreaRTE->is_FE()) {
         $this->RTEProperties = $this->htmlAreaRTE->RTEsetup;
     } else {
         $this->RTEProperties = $this->htmlAreaRTE->RTEsetup['properties'];
     }
     return $enabled;
 }

作者:rickymathe    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     $enabled = parent::main($configuration);
     // Hiding some buttons
     if ($enabled && is_array($this->hideButtonsFromClient[$this->configuration['client']['browser']])) {
         $this->pluginButtons = implode(',', array_diff(GeneralUtility::trimExplode(',', $this->pluginButtons, true), $this->hideButtonsFromClient[$this->configuration['client']['browser']]));
     }
     // Force enabling the plugin even if no button remains in the tool bar, so that hot keys still are enabled
     $this->pluginAddsButtons = false;
     return $enabled;
 }

作者:noxlud    项目:TYPO3v4-Cor   
public function main($parentObject)
 {
     $enabled = parent::main($parentObject);
     // Hiding some buttons
     if ($enabled && is_array($this->hideButtonsFromClient[$this->htmlAreaRTE->client['browser']])) {
         $this->pluginButtons = implode(',', array_diff(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->pluginButtons, 1), $this->hideButtonsFromClient[$this->htmlAreaRTE->client['browser']]));
     }
     // Force enabling the plugin even if no button remains in the tool bar, so that hot keys still are enabled
     $this->pluginAddsButtons = FALSE;
     return $enabled;
 }

作者:noxlud    项目:TYPO3v4-Cor   
public function main($parentObject)
 {
     return parent::main($parentObject) && $this->thisConfig['enableWordClean'] && !is_array($this->thisConfig['enableWordClean.']['HTMLparser.']);
 }

作者:nicksergi    项目:TYPO3v4-Cor   
public function main($parentObject)
 {
     return parent::main($parentObject) && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('static_info_tables');
 }

作者:rickymathe    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     // Opera has no onPaste event to handle
     return parent::main($configuration) && $this->configuration['client']['browser'] !== 'opera';
 }

作者:plan2ne    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     return parent::main($configuration) && isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['BlockElements']);
 }

作者:plan2ne    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     return parent::main($configuration) && ExtensionManagementUtility::isLoaded('static_info_tables') && !in_array($this->configuration['language'], GeneralUtility::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['SpellChecker']['noSpellCheckLanguages']));
 }

作者:rickymathe    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     return parent::main($configuration) && !($this->configuration['client']['browser'] === 'opera' || $this->configuration['thisConfig']['contextMenu.']['disabled']);
 }

作者:rickymathe    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param array $configuration Configuration array given from calling object down to the single plugins
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main(array $configuration)
 {
     // Check if this should be enabled based on extension configuration and Page TSConfig
     // The 'Minimal' and 'Typical' default configurations include Page TSConfig that removes images on the way to the database
     return parent::main($configuration) && !($this->configuration['thisConfig']['proc.']['entryHTMLparser_db.']['tags.']['img.']['allowedAttribs'] == '0' && $this->configuration['thisConfig']['proc.']['entryHTMLparser_db.']['tags.']['img.']['rmTagIfNoAttrib'] == '1');
 }

作者:adroll    项目:TYPO3.CM   
/**
  * Returns TRUE if the plugin is available and correctly initialized
  *
  * @param RteHtmlAreaBase $parentObject parent object
  * @return bool TRUE if this plugin object should be made available in the current environment and is correctly initialized
  */
 public function main($parentObject)
 {
     return parent::main($parentObject) && $this->htmlAreaRTE->isPluginEnabled('BlockElements');
 }


问题


面经


文章

微信
公众号

扫码关注公众号