Project

General

Profile

Actions

Bug #80971

closed

How to define custom class, title, and target in Link Browser for content elements and the new rte_ckeditor?

Added by Marcelo Vetter about 7 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2017-04-24
Due date:
% Done:

70%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
link-browser, ckeditor
Complexity:
medium
Is Regression:
Sprint Focus:

Description

Prerequisites

  • [x] Can you reproduce the problem on TYPO3 8.7 LTS
  • [x] Did you [perform a cursory search] to see if your bug or enhancement is already reported?

Description

How do I configure default link target, class, and title for the Link Browser in any element link (usually element titles and images) AND in rte_ckeditor? I've spent several hours trying to configure it, but no success and no documentation out there. The fields are empty as you can see on the images below.

Steps to Reproduce

1. Create any element that you can link the title or image.
2. Click to open the Link Browser
3. The options come empty for any type of link (Page, File, Folder, External URL, Email).

Expected behavior:
I want to define default classes, link targets and titles for each type of link if they are empty.
For example External URL, I want to automatically populate with target="_blank", class "external-link", title="Link to External Website", if the link wasn't configure previously. Basically for any new link I just want to have it auto populated with my custom values and not empty values.

This used to work for rtehtmlarea only on previous Typo3 versions, but not I'm not able to set this option system wide on Typo3 8 LTS and ckeditor.

The PageTS that used to work only for rtehtmlarea was something like this:
```
RTE {
classesAnchor {
externalLink {
class = external-link
type = url
titleText = Opens external link in new window
target = _blank
}
externalLinkInNewWindow {
class = external-link-new-window
type = url
titleText = Opens external link in new window
target = _blank
}
internalLink {
class = internal-link
type = page
titleText = Opens internal link in this window
target = _top
}
internalLinkInNewWindow {
class = internal-link-new-window
type = page
titleText = Opens internal link in new window
target = _blank
}
folder {
class = folder
type = folder
titleText =
target =
}
download {
class = download
type = file
titleText = Initiates file download
target = _blank
}
mail {
class = mail
type = mail
titleText = Email Address
}
}
}
```
I would like this to work for the new rte_ckeditor as well for any element options that I can link using the Link Browser.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #81381: RTE TSConfig is lost when using own CKEditor presetClosed2017-05-30

Actions
Actions

Also available in: Atom PDF