From bc996f77215980b40ce36c85e606514be24a9680 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 9 Nov 2018 14:20:58 -0800 Subject: [PATCH] Fixes #3543 - YouTube video insertion into text area. --- e107_admin/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index fdeaafb6a..ef39b25e5 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -2344,7 +2344,7 @@ class media_admin_ui extends e_admin_ui $thumbnail = $value['snippet']['thumbnails']['medium']['url']; $items[] = array( - 'previewHtml' => $tp->toVideo($id.".".$extension, array('w'=>210, 'h'=>140)), + 'previewHtml' => $bbcode ? null : $tp->toVideo($id.".".$extension, array('w'=>210, 'h'=>140)), 'previewUrl' => $thumbnail, 'saveValue' => $id.".".$extension, // youtube", 'thumbUrl' => $thumbnail,