N°5298 - Fix CKEditor not using width/height from the datamodel since upgrade to v5 in the backoffice

This commit is contained in:
Molkobain
2024-05-22 15:13:40 +02:00
parent 7dd913b0dd
commit c06aa66854
3 changed files with 14 additions and 5 deletions

View File

@@ -81,7 +81,6 @@ class UIHTMLEditorWidget
if ($sWidthSpec != '') {
/*N°6543 - the function min allow to keep text inside the column when width is defined*/
$aConfig['width'] = "min($sWidthSpec,100%)";
$sJSDefineWidth = '$("#cke_'.$iId.' iframe").contents().find("body").css("width", "'.$sWidthSpec.'")';
}
$sHeightSpec = addslashes(trim($this->m_oAttDef->GetHeight()));
if ($sHeightSpec != '') {