fix for rich-edit

This commit is contained in:
Roland Gruber 2017-12-15 16:53:53 +01:00
parent bb89fa334b
commit 47caf8bdc5
1 changed files with 7 additions and 3 deletions

View File

@ -2273,7 +2273,7 @@ class htmlInputTextarea extends htmlElement {
/** enabled or disabled */ /** enabled or disabled */
private $isEnabled = true; private $isEnabled = true;
/** specifies if LAM should display this field whith a WYSIWYG editor */ /** specifies if LAM should display this field whith a WYSIWYG editor */
private $richEdit = false; protected $richEdit = false;
/** /**
* Constructor. * Constructor.
@ -3851,14 +3851,18 @@ class htmlResponsiveInputTextarea extends htmlInputTextarea {
} }
if (!empty($this->helpID)) { if (!empty($this->helpID)) {
$helpLinkLabel = new htmlHelpLink($this->helpID); $helpLinkLabel = new htmlHelpLink($this->helpID);
$helpLinkLabel->setCSSClasses(array('hide-on-tablet', 'margin-left5')); $helpCssClasses = array('margin-left5');
if (!$this->richEdit) {
$helpCssClasses[] = 'hide-on-tablet';
}
$helpLinkLabel->setCSSClasses($helpCssClasses);
$labelGroup->addElement($helpLinkLabel); $labelGroup->addElement($helpLinkLabel);
} }
$row->add($labelGroup, 12, 6, 6, 'responsiveLabel'); $row->add($labelGroup, 12, 6, 6, 'responsiveLabel');
// input field // input field
$fieldGroup = new htmlGroup(); $fieldGroup = new htmlGroup();
$fieldGroup->addElement($this); $fieldGroup->addElement($this);
if (!empty($this->helpID)) { if (!empty($this->helpID) && !$this->richEdit) {
$helpLink = new htmlHelpLink($this->helpID); $helpLink = new htmlHelpLink($this->helpID);
$helpLink->setCSSClasses(array('align-top', 'hide-on-mobile')); $helpLink->setCSSClasses(array('align-top', 'hide-on-mobile'));
$fieldGroup->addElement($helpLink); $fieldGroup->addElement($helpLink);