From 46234fbec7d28289bdfa6cd31a7a80aa9e640eac Mon Sep 17 00:00:00 2001 From: Lodder Date: Fri, 21 Oct 2016 10:17:48 +0100 Subject: [PATCH] [Fix] SyntaxError: expected expression, got '<' --- plugins/editors/tinymce/tinymce.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/editors/tinymce/tinymce.php b/plugins/editors/tinymce/tinymce.php index 71bb251dd85d6..6df501c02084b 100644 --- a/plugins/editors/tinymce/tinymce.php +++ b/plugins/editors/tinymce/tinymce.php @@ -737,8 +737,7 @@ public function onDisplay($name, $content, $width, $height, $col, $row, $buttons if (!empty($btnsNames)) { - $modalFix = JHtml::_('script', 'system/tiny-close.min.js', false, true); - JFactory::getDocument()->addScript($modalFix, "text/javascript", true, false); + JHtml::_('script', 'system/tiny-close.min.js', false, true); } // Drag and drop Images @@ -1056,8 +1055,8 @@ private function tinyButtons($name, $excluded) } return array( - 'names' => $btnsNames, - 'script' => $tinyBtns + 'names' => $btnsNames, + 'script' => $tinyBtns ); }