From 39d84289cfa9da6eb7867822d0628219a2deea1a Mon Sep 17 00:00:00 2001
From: Fabian Galinski <fabian@sgalinski.de>
Date: Thu, 14 Sep 2017 03:18:43 +0200
Subject: [PATCH] [TASK] Reparation of the image browser for TYPO3 8

---
 Classes/Extension/Typo3Image.php         | 2 +-
 Classes/Form/Element/RichTextElement.php | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Classes/Extension/Typo3Image.php b/Classes/Extension/Typo3Image.php
index 5592e75..e68fe4d 100644
--- a/Classes/Extension/Typo3Image.php
+++ b/Classes/Extension/Typo3Image.php
@@ -14,9 +14,9 @@ namespace SGalinski\Tinymce4Rte\Extension;
  * The TYPO3 project - inspiring people to share!
  */
 
+use SGalinski\Tinymce4Rte\RteHtmlAreaApi;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi;
 
 /**
  * TYPO3 Image plugin for htmlArea RTE
diff --git a/Classes/Form/Element/RichTextElement.php b/Classes/Form/Element/RichTextElement.php
index 182b20f..3da2cbb 100644
--- a/Classes/Form/Element/RichTextElement.php
+++ b/Classes/Form/Element/RichTextElement.php
@@ -361,9 +361,9 @@ class RichTextElement extends AbstractFormElement {
 	protected function enableRegisteredPlugins() {
 		// @todo repair this
 		$plugins = [
-//			'TYPO3Image' => [
-//				'objectReference' => Typo3Image::class,
-//			],
+			'TYPO3Image' => [
+				'objectReference' => Typo3Image::class,
+			],
 			'TYPO3Link' => [
 				'objectReference' => TYPO3Link::class,
 			],
-- 
GitLab