Editor Issues 

Solutions for problems encountered in the TYPO3 backend editor and CKEditor functionality.

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:

  1. The rteWithImages preset is not active: the site does not use the Site Set netresearch/rte-ckeditor-image and page TSconfig does not set RTE.default.preset = rteWithImages
  2. Plugin not properly imported in RTE configuration
  3. removePlugins includes image plugin
  4. 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
Copied!

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
Copied!

The plugin now requires:

static get requires() {
    return ['StyleUtils', 'GeneralHtmlSupport', 'WidgetToolbarRepository'];
}
Copied!

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']
Copied!

File Browser Issues 

Issue: File Browser Empty or Not Loading 

Symptoms:

  • Modal opens but shows no files
  • File browser stuck loading

Causes:

  1. No file mount configured for backend user
  2. Missing file permissions
  3. Empty fileadmin directory

Solution:

# User TSConfig
options.defaultUploadFolder = 1:fileadmin/user_upload/
Copied!

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:

  1. File reference invalid
  2. Storage not accessible
  3. File deleted from filesystem

Solution:

  1. Verify file exists in fileadmin/
  2. Check file permissions (readable by web server)
  3. Clear file abstraction layer cache:
./vendor/bin/typo3 cache:flush --group=system
Copied!

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
}
Copied!

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
Copied!
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" }
Copied!

Issue: Double-Click on Image Does Nothing 

Symptoms:

  • Double-clicking image doesn't open dialog
  • Edit functionality not working

Causes:

  1. DoubleClickObserver not registered
  2. JavaScript error blocking execution
  3. Image not recognized as typo3image

Solution:

  1. Check browser console for JavaScript errors
  2. Verify image has data-htmlarea-file-uid attribute
  3. Clear browser cache and reload
  4. 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:

  1. JavaScript errors preventing initialization
  2. RTE configuration not loaded
  3. Browser cache issues

Solution:

  1. Check browser console for errors
  2. 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" }
Copied!
  1. Clear browser and TYPO3 caches:
./vendor/bin/typo3 cache:flush
Copied!
  1. 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
Copied!

Debugging Editor Issues 

Enable RTE Debugging 

# Page TSConfig
RTE.default.showButtons = *
RTE.default.hideButtons =
Copied!

Check Loaded Configuration 

Browser console:

// CKEditor 5 stores the editor instance on its editable element
const editor = document.querySelector('.ck-editor__editable').ckeditorInstance;

// Check if the image plugin is loaded
console.log(editor.plugins.has('Typo3Image'));

// Inspect editor config
console.log(editor.config.get('toolbar'));
Copied!

Monitor Network Requests 

  1. Open browser DevTools
  2. Go to Network tab
  3. Trigger image selection
  4. 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]');
Copied!

Resolved Issues 

UTF-8 characters in figcaptions 

Changed in version 13.6.0

Symptoms:

  • German umlauts (ä, ö, ü, ß) corrupted in figcaptions on the frontend
  • Accented characters (é, ç, ñ) replaced with garbled text
  • Only figcaptions affected, image alt/title attributes rendered correctly

Cause: PHP's DOMDocument::loadHTML() defaults to ISO-8859-1 encoding, which corrupts multi-byte UTF-8 characters during HTML parsing.

Status: Fixed. All DOMDocument::loadHTML() calls now prefix the HTML with <?xml encoding="UTF-8"> before parsing. No action required.

Known Limitations 

Figcaption line breaks 

Symptoms:

  • Caption text always appears on a single line on the frontend
  • Bold, italic and links in a caption are not rendered on the frontend
  • Editing the image in the image dialog removes the caption formatting

Cause: Earlier versions kept only the text of the <figcaption>. The editor now keeps the inline content of a caption: line breaks (Shift+Enter, or <br> in source mode), bold, italic and links survive loading and saving the content.

The frontend renders the caption with this inline allowlist: <br>, <strong>, <b>, <em>, <i> and <a>. Every other element is reduced to its text, every other attribute is removed. A link keeps only href, target, title and rel. Its href must use an allowed protocol (http, https, mailto, tel, t3) or be relative; otherwise the link is replaced by its text. t3:// links are resolved like other RTE links; a t3:// link that cannot be resolved is replaced by its text. target="_blank" on an external link gets rel="noreferrer". See Security for the security rules.

The image dialog shows the caption as plain text. Saving the dialog without changing that text keeps the formatting. Changing the caption text in the dialog replaces the caption with the new plain text, so line breaks, bold and links are lost. To keep formatting while changing the text, edit the caption directly in the editor instead of in the dialog.

If your site package overrides Partials/Image/Figure.html, the override still prints {image.caption} escaped, so the markup appears as text. Print it with {image.caption -> f:format.raw()} as the extension's partial does; the caption is sanitized before it reaches the template.

Workaround (older versions): Captions wrap naturally based on the figure container width. Since version 13.6.0, the <figure> element is automatically constrained to the image width via max-width, so captions wrap within the image boundary without additional CSS. See Image styles for details.


Getting Help 

If issues persist after troubleshooting:

  1. Check GitHub Issues: https://github.com/netresearch/t3x-rte_ckeditor_image/issues
  2. Review Changelog: Look for breaking changes in CHANGELOG.md
  3. TYPO3 Slack: Join #typo3-cms
  4. Stack Overflow: Tag questions with typo3 and ckeditor