Skip to content

A small but important change: The WordBreak module now has a named export. This was necessary to support the new Visual Editor in the TYPO3 backend.

When using the short import syntax, the Visual Editor backend module reports the following error:

TypeError
Cannot access offset of type string on string

To fix the issue, you can now adjust the import:

editor:
  config:
    importModules:
      # New import syntax: required when using EXT:visual_editor
      - { module: '@sebkln/ckeditor-wordbreak', exports: [ 'WordBreak' ] }

      # Alternatively: The previous import notation still works
      - '@sebkln/ckeditor-wordbreak'

    # As usual: Add the button to the toolbar
    toolbar:
      items:
        - WordBreak

No breaking change: Since the module still has a default export, the short notation will continue to work after updating the extension. Only those who want to use the Visual Editor need to adjust the import.

Back to news list