mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-12-22 17:46:08 +01:00
[BUGFIX] Display edit icons in frontend
Do not hide them via inline display none. Instead provide necessary CSS via static TypoScript.
This commit is contained in:
parent
a4d92d0c5e
commit
a91063ae99
3 changed files with 17 additions and 1 deletions
|
@ -302,7 +302,7 @@ class FrontendEditPanel
|
|||
$width = MathUtility::forceIntegerInRange($this->backendUser->getTSConfig()['options.']['feedit.']['popupWidth'] ?? 690, 690, 5000, 690);
|
||||
$height = MathUtility::forceIntegerInRange($this->backendUser->getTSConfig()['options.']['feedit.']['popupHeight'] ?? 500, 500, 5000, 500);
|
||||
$onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . rawurlencode(PathUtility::getAbsoluteWebPath(GeneralUtility::getFileAbsFileName('EXT:backend/Resources/Public/Html/Close.html')))) . ',\'FEquickEditWindow\',\'width=' . $width . ',height=' . $height . ',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;';
|
||||
return '<a href="#" class="typo3-editPanel-btn typo3-editPanel-btn-default frontEndEditIconLinks ' . htmlspecialchars($additionalClasses) . '" onclick="' . htmlspecialchars($onclick) . '" style="display: none;">' . $string . '</a>';
|
||||
return '<a href="#" class="typo3-editPanel-btn typo3-editPanel-btn-default frontEndEditIconLinks ' . htmlspecialchars($additionalClasses) . '" onclick="' . htmlspecialchars($onclick) . '">' . $string . '</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
8
Configuration/TCA/Overrides/sys_template.php
Normal file
8
Configuration/TCA/Overrides/sys_template.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
|
||||
'feedit',
|
||||
'Configuration/TypoScript',
|
||||
'Frontend Editing'
|
||||
);
|
8
Configuration/TypoScript/setup.typoscript
Normal file
8
Configuration/TypoScript/setup.typoscript
Normal file
|
@ -0,0 +1,8 @@
|
|||
plugin.tx_feedit._CSS_DEFAULT_STYLE (
|
||||
.typo3-editPanel-btn .icon-size-small {
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
width: 16px;
|
||||
}
|
||||
)
|
Loading…
Reference in a new issue