本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: main
public function main($parentObject)
{
$available = parent::main($parentObject);
if ($this->htmlAreaRTE->client['browser'] == 'opera') {
$this->thisConfig['hideTableOperationsInToolbar'] = 0;
}
return $available;
}
示例8: main
public function main($parentObject)
{
$available = parent::main($parentObject);
if ($this->thisConfig['disableSelectColor'] && $this->htmlAreaRTE->client['browser'] != 'gecko') {
$this->requiredPlugins = 'DefaultColor';
}
return $available;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例13: main
public function main($parentObject)
{
return parent::main($parentObject) && $this->thisConfig['enableWordClean'] && !is_array($this->thisConfig['enableWordClean.']['HTMLparser.']);
}
示例14: main
public function main($parentObject)
{
return parent::main($parentObject) && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('static_info_tables');
}
示例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';
}