diff --git a/sources/renderer/bootstrap/fieldrenderer/bssimplefieldrenderer.class.inc.php b/sources/renderer/bootstrap/fieldrenderer/bssimplefieldrenderer.class.inc.php index 3317d1a099..d7dc9b6035 100644 --- a/sources/renderer/bootstrap/fieldrenderer/bssimplefieldrenderer.class.inc.php +++ b/sources/renderer/bootstrap/fieldrenderer/bssimplefieldrenderer.class.inc.php @@ -411,18 +411,30 @@ EOF break; case 'Combodo\\iTop\\Form\\Field\\TextAreaField': case 'Combodo\\iTop\\Form\\Field\\CaseLogField': - // Overloading $sFormFieldOptions to include the set_current_value_callback. It would have been nicer to refactor the variable for all field types, but as this is a fix for a maintenance release, we rather be safe. - $sValidators = json_encode($aValidators); - $oOutput->AddJs( - <<oField->GetFormat() === TextAreaField::ENUM_FORMAT_HTML); + if($bRichEditor) + { + // Overloading $sFormFieldOptions to include the set_current_value_callback. It would have been nicer to refactor the variable for all field types, but as this is a fix for a maintenance release, we rather be safe. + $sValidators = json_encode($aValidators); + $oOutput->AddJs( + <<AddJs(InlineImage::FixImagesWidth()); + ); + // MagnificPopup on images + $oOutput->AddJs(InlineImage::FixImagesWidth()); + } + else + { + $oOutput->AddJs( + <<