|
|
@@ -555,7 +555,7 @@ EOS;
|
|
|
{
|
|
|
$sAttr = isset($aInput['attrs_wrapper']) && is_array($aInput['attrs_wrapper']) ? bx_convert_array2attrs($aInput['attrs_wrapper']) : '';
|
|
|
|
|
|
- return "<div class=\"bx-form-input-wrapper bx-form-input-wrapper-{$aInput['type']}\" $sAttr>$sContent</div>";
|
|
|
+ return "<div class=\"bx-form-input-wrapper bx-form-input-wrapper-{$aInput['type']}" . ((isset($aInput['html']) && $aInput['html'] && $this->isHtmlEditor($aInput['html'], $aInput)) ? ' bx-form-input-wrapper-html' : '') . "\" $sAttr>$sContent</div>";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -911,6 +911,11 @@ BLAH;
|
|
|
return "<textarea $sAttrs>$sValue</textarea>";
|
|
|
}
|
|
|
|
|
|
+ function isHtmlEditor($iViewMode, &$aInput)
|
|
|
+ {
|
|
|
+ return BxDolEditor::getObjectInstance(false, $this->oTemplate) !== false;
|
|
|
+ }
|
|
|
+
|
|
|
function addHtmlEditor($iViewMode, &$aInput)
|
|
|
{
|
|
|
$oEditor = BxDolEditor::getObjectInstance(false, $this->oTemplate);
|