diff --git a/plugins/editors/tinymce/tinymce.php b/plugins/editors/tinymce/tinymce.php index bf6ee789ab310..b2c10e88a6ea3 100644 --- a/plugins/editors/tinymce/tinymce.php +++ b/plugins/editors/tinymce/tinymce.php @@ -604,19 +604,10 @@ public function onDisplay( $isSubDir = JUri::root(true); } - // Get specific path - $tempPath = $levelParams->get('path', ''); - - if (!empty($tempPath)) - { - // Remove the root images path - $tempPath = str_replace(JComponentHelper::getParams('com_media')->get('image_path') . '/', '', $tempPath); - } - JText::script('PLG_TINY_ERR_UNSUPPORTEDBROWSER'); $scriptOptions['setCustomDir'] = $isSubDir; - $scriptOptions['mediaUploadPath'] = $tempPath; + $scriptOptions['mediaUploadPath'] = $levelParams->get('path', ''); $scriptOptions['uploadUri'] = $uploadUrl; } @@ -1895,19 +1886,10 @@ private function onDisplayLegacy( $isSubDir = JUri::root(true); } - // Get specific path - $tempPath = $this->params->get('path', ''); - - if (!empty($tempPath)) - { - // Remove the root images path - $tempPath = str_replace(JComponentHelper::getParams('com_media')->get('image_path') . '/', '', $tempPath); - } - JText::script('PLG_TINY_ERR_UNSUPPORTEDBROWSER'); $scriptOptions['setCustomDir'] = $isSubDir; - $scriptOptions['mediaUploadPath'] = $tempPath; + $scriptOptions['mediaUploadPath'] = $this->params->get('path', ''); $scriptOptions['uploadUri'] = $uploadUrl; $externalPlugins = array(