Editor Issues
Solutions for problems encountered in the TYPO3 backend editor and CKEditor functionality.
Table of Contents
Image Button Problems
Issue: Image Button Not Visible in Toolbar
Symptoms:
- Insert image button missing from CKEditor toolbar
- RTE loads but no image functionality
Causes:
- Plugin not properly imported in RTE configuration
removePlugins
includes image plugin- Toolbar configuration missing
insertimage
item
Solution:
# Configuration/RTE/Default.yaml
imports:
- { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }
editor:
config:
removePlugins: null # Critical: Don't remove image plugin
toolbar:
items:
- insertimage # Add to toolbar
Style Dropdown Problems
Issue: Style Drop-Down Not Working with Images
Symptoms:
- Styles disabled when image selected
- Style changes not applied to images
Cause: Missing GeneralHtmlSupport
dependency (fixed in v13.0.0+)
Solution: Ensure you're using extension version 13.0.0 or higher:
composer require netresearch/rte-ckeditor-image:^13.0
The plugin now requires:
static get requires() {
return ['StyleUtils', 'GeneralHtmlSupport']; // Both mandatory
}
Important
The GeneralHtmlSupport
dependency is critical for style functionality in v13.0.0+
Issue: Custom Image Styles Lost After Upgrade
Symptoms:
- Custom styles no longer available
- Style drop-down empty
Cause: RTE configuration changed
Solution: Re-apply custom styles in RTE configuration:
editor:
config:
style:
definitions:
- name: 'Your Custom Style'
element: 'img'
classes: ['your-class']
File Browser Issues
Issue: File Browser Empty or Not Loading
Symptoms:
- Modal opens but shows no files
- File browser stuck loading
Causes:
- No file mount configured for backend user
- Missing file permissions
- Empty fileadmin directory
Solution:
# User TSConfig
options.defaultUploadFolder = 1:fileadmin/user_upload/
Verify backend user has file mount in: Backend → User Management → Backend Users → File Mounts
Issue: "File Not Found" After Selection
Symptoms:
- Image selected but error occurs
- Empty image inserted
Causes:
- File reference invalid
- Storage not accessible
- File deleted from filesystem
Solution:
- Verify file exists in
fileadmin/
- Check file permissions (readable by web server)
- Clear file abstraction layer cache:
./vendor/bin/typo3 cache:flush --group=system
Image Dimension Problems
Issue: Magic Image Maximum Dimensions Not Working
Symptoms:
- Images not respecting configured maxWidth/maxHeight
- Large images not being resized
Cause: TSConfig settings in custom template extension not loaded (TYPO3 bug #87068)
Solution: Add settings to root page config instead:
# In root page TSConfig (not template extension)
RTE.default.buttons.image.options.magic {
maxWidth = 1920
maxHeight = 9999
}
Tip
Place TSConfig settings in root page configuration for proper loading.
JavaScript/CKEditor Errors
Issue: JavaScript Console Errors
Symptoms:
- Browser console shows errors
- Editor doesn't load properly
Common Errors
1. "GeneralHtmlSupport is not defined"
Cause: Extension version < 13.0.0
Solution: Update to latest version:
composer update netresearch/rte-ckeditor-image
2. "Cannot read property 'typo3image' of undefined"
Cause: Plugin configuration not loaded
Solution: Verify Configuration/RTE/Plugin.yaml
imported:
imports:
- { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }
3. jQuery Errors
Cause: jQuery not available in context
Solution: The plugin requires jQuery. Ensure TYPO3 backend context loads it (typically automatic).
Issue: Double-Click on Image Does Nothing
Symptoms:
- Double-clicking image doesn't open dialog
- Edit functionality not working
Causes:
- DoubleClickObserver not registered
- JavaScript error blocking execution
- Image not recognized as typo3image
Solution:
- Check browser console for JavaScript errors
- Verify image has
data-htmlarea-file-uid
attribute - Clear browser cache and reload
- Check CKEditor version compatibility (requires CKEditor 5)
Editor Loading Problems
Issue: Editor Not Initializing
Symptoms:
- CKEditor doesn't load
- Textarea remains plain text field
Causes:
- JavaScript errors preventing initialization
- RTE configuration not loaded
- Browser cache issues
Solution:
- Check browser console for errors
- Verify RTE preset is enabled:
# Configuration/RTE/Default.yaml
imports:
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Default.yaml" }
- { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }
- Clear browser and TYPO3 caches:
./vendor/bin/typo3 cache:flush
- Force reload in browser (Ctrl+Shift+R)
Plugin Configuration Issues
Issue: Plugin Not Recognized
Symptoms:
- Image plugin functionality missing
- Console error about undefined plugin
Cause: Plugin configuration not properly loaded
Solution: Ensure proper import order:
# Configuration/RTE/Default.yaml
imports:
# Base CKEditor configuration first
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Default.yaml" }
# Then image plugin
- { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }
editor:
config:
# Ensure plugin is not removed
removePlugins: null
toolbar:
items:
- insertimage
Debugging Editor Issues
Enable RTE Debugging
# Page TSConfig
RTE.default.showButtons = *
RTE.default.hideButtons =
Check Loaded Configuration
Browser console:
// Check if plugin loaded
console.log(CKEDITOR.instances);
// Inspect editor config
const editor = Object.values(CKEDITOR.instances)[0];
console.log(editor.config);
Monitor Network Requests
- Open browser DevTools
- Go to Network tab
- Trigger image selection
-
Check for failed requests to:
/rte/wizard/selectimage
- Backend image info API
Inspect DOM Elements
Check if images have required attributes:
// In browser console
document.querySelectorAll('img[data-htmlarea-file-uid]');
Getting Help
If issues persist after troubleshooting:
- Check GitHub Issues: https://github.com/netresearch/t3x-rte_ckeditor_image/issues
- Review Changelog: Look for breaking changes in CHANGELOG.md
- TYPO3 Slack: Join #typo3-cms
- Stack Overflow: Tag questions with
typo3
andckeditor
Important
When reporting issues, include:
- TYPO3 version
- Extension version
- PHP version
- Browser console errors
- RTE configuration (sanitized)
- Steps to reproduce