TYPO3 V8 enable images in CKEditor RTE

To enable images in CKEditor RTE on Typo3 V8, we have to install the extension rte_ckeditor_image.

After installing the extension, we have to do couple of things in our custom extension.

Create the folder called RTE inside the folder 'your_ext/Configuration/'. So it looks like this 'your_ext/Configuration/RTE/'. Inside the folder RTE, create the file called 'Default.yaml'

Default.yaml

# EXT:your_ext/Configuration/RTE/Default.yaml
imports:
 # Import default RTE config (for example)
  - { resource: "EXT:rte_ckeditor/Configuration/RTE/Default.yaml" }
  # Import the image plugin configuration
  - { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }

editor:
  config:
    # RTE default config removes image plugin - restore it:
    removePlugins: null

After this, add the below code in ext_localconf.php of your_ext

$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'EXT:yourExt/Configuration/RTE/Default.yaml';

Now after clearing TYPO3 cache, we should see the image select option in RTE.