Issue Bug Resolved

#110146Default "target"-value for ckeditor linkbrowser has no effect

Marcel Schüßler 07/02/26, 17:22 updated 11/20/26, 11:50

Description

Setting a default value for the target attribute in the ckeditor linkbrowser config has no effect:

buttons:
  link:
    file:
      properties:
        target:
          default: '_blank'

editor:
  # ...

The documentation only mentions being able to set a default class:
https://docs.typo3.org/c/typo3/cms-rte-ckeditor/main/en-us/Configuration/Reference.html#link-browser-specific-options

Looking at the code, it looks like it should work, but the `$target` variable was not used on accident: https://github.com/TYPO3/typo3/blob/main/typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php#L364

Reviews 2

History 47

  1. Garvin Hicking commented <span data-processor="relativetime" data-value="2026-07-03T17:23:32+00:00" > 07/03/26, 17:23 </span>

    (IIRC this was intentionally removed because it is not advised to have links default to popups as it overrides user intent/choice. I think there was a commit or changelif entry to it, would have to check the git history of the file you mentioned)

  2. Radostin Milenov commented <span data-processor="relativetime" data-value="2026-08-04T04:30:36+00:00" > 08/04/26, 04:30 </span>

    I agree with Garvin on this one. Plus i assume there’s gonna be a lot to do if it is active. Backend Form would need to be adjusted a lot and the use cases are probably limited.

  3. Oliver Schröder commented <span data-processor="relativetime" data-value="2026-11-02T17:27:27+00:00" > 11/02/26, 17:27 </span>

    The change was introduced with https://forge.typo3.org/issues/106637 that improved accessibility in the backend.

    I don’t understand why the default setting for target was removed there. I can’t see an explanation in either the commit message (https://github.com/TYPO3/typo3/commit/76c6c3eb3c24107b918349dcbd1c572baef420b7) or the change log entry (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/14.0/Feature-106637-ImplementAccessibleComboboxPattern.html).

    So: I’m seeing the same issue that Marcel reported and – as `$target` is set but never used – I too think this var wasn’t used accidentally.

    (Nevertheless, I agree that it’s better not to use `target=”_blank”`, but that’s a decision for the integrator and the editorial team to make.)

  4. Benjamin Kott commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-20T11:50:19+00:00" > 11/20/26, 11:50 </span>

    Applied in changeset commit:f4b5d49ea98c298eda0ad5961ce86563d1db8bca.