diff --git a/plugins/editors/tinymce/tinymce.php b/plugins/editors/tinymce/tinymce.php index 0091fe9b65b63..2eff61ee3eef9 100644 --- a/plugins/editors/tinymce/tinymce.php +++ b/plugins/editors/tinymce/tinymce.php @@ -327,7 +327,18 @@ public function onDisplay($name, $content, $width, $height, $col, $row, $buttons $access = array_flip($access); $html_height = $this->params->get('html_height', '550'); + + if (is_numeric($height)) + { + $html_height = $height; + } + $html_width = $this->params->get('html_width', ''); + + if (is_numeric($width)) + { + $html_width = $width; + } if ($html_width == 750) { @@ -982,7 +993,8 @@ function jInsertEditorText( text, editor ) $textarea->height = $height; $textarea->content = $content; - $editor = '
'; + $cssWidth = ($textarea->width) ? ' style="width: ' . (int) $textarea->width . 'px"' : ''; + $editor = '
'; $editor .= JLayoutHelper::render('joomla.tinymce.textarea', $textarea); $editor .= $this->_toogleButton($id); $editor .= '
';