当前位置: 首页>>代码示例>>PHP>>正文


PHP RteHtmlAreaApi::main方法代码示例

本文整理汇总了PHP中TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi::main方法的典型用法代码示例。如果您正苦于以下问题:PHP RteHtmlAreaApi::main方法的具体用法?PHP RteHtmlAreaApi::main怎么用?PHP RteHtmlAreaApi::main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi的用法示例。


在下文中一共展示了RteHtmlAreaApi::main方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: main

 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);
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:7,代码来源:Language.php

示例2: main

 /**
  * 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);
 }
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:13,代码来源:Language.php

示例3: main

 /**
  * 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;
 }
开发者ID:adrolli,项目名称:TYPO3.CMS,代码行数:13,代码来源:EditorMode.php

示例4: main

 /**
  * 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;
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:13,代码来源:EditorMode.php

示例5: main

 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;
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:8,代码来源:Typo3Image.php

示例6: main

 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;
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:8,代码来源:DefinitionList.php

示例7: main

 public function main($parentObject)
 {
     $available = parent::main($parentObject);
     if ($this->htmlAreaRTE->client['browser'] == 'opera') {
         $this->thisConfig['hideTableOperationsInToolbar'] = 0;
     }
     return $available;
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:8,代码来源:TableOperations.php

示例8: main

 public function main($parentObject)
 {
     $available = parent::main($parentObject);
     if ($this->thisConfig['disableSelectColor'] && $this->htmlAreaRTE->client['browser'] != 'gecko') {
         $this->requiredPlugins = 'DefaultColor';
     }
     return $available;
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:8,代码来源:QuickTag.php

示例9: main

 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);
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:9,代码来源:Language.php

示例10: main

 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;
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:10,代码来源:SelectFont.php

示例11: main

 /**
  * 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;
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:17,代码来源:CopyPaste.php

示例12: main

 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;
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:11,代码来源:CopyPaste.php

示例13: main

 public function main($parentObject)
 {
     return parent::main($parentObject) && $this->thisConfig['enableWordClean'] && !is_array($this->thisConfig['enableWordClean.']['HTMLparser.']);
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:4,代码来源:DefaultClean.php

示例14: main

 public function main($parentObject)
 {
     return parent::main($parentObject) && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('static_info_tables');
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:4,代码来源:Acronym.php

示例15: main

 /**
  * 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';
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:11,代码来源:Plaintext.php


注:本文中的TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi::main方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。