RTE Setup
Complete guide for configuring the RTE (Rich Text Editor) with CKEditor image support.
Important
Backend Configuration via the Site Set
Installing the extension registers the rte preset:
composer require netresearch/rte-ckeditor-image
The preset is activated by the Site Set netresearch/.
Its page TSconfig sets RTE..
Add the Site Set as a dependency of your site, and the insertimage button
is available in all RTEs that use the default configuration.
Without the Site Set, set the preset yourself in page TSconfig:
RTE.default.preset = rteWithImages
Note
Frontend rendering requires TypoScript inclusion. See Frontend Rendering.
This guide is for advanced users who need custom RTE presets or want to override the defaults.
Table of Contents
Automatic Configuration (Default)
The extension provides for the backend:
- Preset:
rteregistered inWith Images ext_; the Site Set activates it withlocalconf. php RTE.default. preset = rte With Images - Toolbar:
insertimagebutton included in the preset's toolbar - Configuration:
Configuration/with full toolbarRTE/ Default. yaml
Note
Frontend rendering requires manual TypoScript inclusion. See Frontend Rendering.
Custom RTE Configuration
Creating Custom Presets
If you need to customize the toolbar or RTE behavior beyond the defaults, create a custom preset:
imports:
# Import default RTE config
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Default.yaml" }
# Import image plugin configuration
- { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }
editor:
config:
toolbar:
items:
- heading
- '|'
- insertimage
- link
- '|'
- bold
- italic
Register Custom Preset
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['custom']
= 'EXT:my_ext/Configuration/RTE/Custom.yaml';
Enable Custom Preset
RTE.default.preset = custom
Advanced RTE Configuration
Custom Allowed Extensions
-
- type
-
string
- Default
-
Value from
$GLOBALS['TYPO3_ CONF_ VARS'] ['GFX'] ['imagefile_ ext']
Comma-separated list of allowed image file extensions for the RTE image plugin.
Restricts which file types can be selected through the image browser.
Example:
editor: externalPlugins: typo3image: route: "rteckeditorimage_wizard_select_image" allowedExtensions: "jpg,jpeg,png,gif,webp"Copied!If not specified, falls back to the global TYPO3 configuration at
$GLOBALS['TYPO3_ CONF_ VARS'] ['GFX'] ['imagefile_ ext']
Multiple RTE Presets
Different configurations for different content types:
imports:
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Minimal.yaml" }
- { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }
editor:
config:
removePlugins: null
toolbar:
items:
- insertimage
# Different presets for different fields
RTE.default.preset = default
RTE.config.tt_content.bodytext.preset = full
RTE.config.tt_content.header.preset = simple