diff --git a/plugins/editors/tinymce/tinymce.php b/plugins/editors/tinymce/tinymce.php index 79c4dbe878dc0..99d56c40c630c 100644 --- a/plugins/editors/tinymce/tinymce.php +++ b/plugins/editors/tinymce/tinymce.php @@ -406,12 +406,24 @@ public function onDisplay( $valid_elements = trim($levelParams->get('valid_elements', '')); } - $html_height = $this->params->get('html_height', '550'); - $html_width = $this->params->get('html_width', ''); + // Compare the value with what is set in JFormFieldEditor::setup() + if ($height && $height !== '500px') + { + $html_height = $height; + } + else + { + $html_height = $this->params->get('html_height', '500'); + } - if ($html_width == 750) + // Compare the value with what is set in JFormFieldEditor::setup() + if ($width && $width !== '100%') { - $html_width = ''; + $html_width = $width; + } + else + { + $html_width = $this->params->get('html_width', '750'); } // The param is true for vertical resizing only, false or both