Project

General

Profile

Actions

Bug #70844

closed

RTE link wizard: Classes cannot be changed in other than default tab

Added by Tim Wehrmann over 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2015-10-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Example snippets

TSConfig

RTE {
    default {
        contentCSS = fileadmin/rte.css
        proc.allowedClasses = new-link-class
        buttons {
            link.properties.class.allowedClasses = new-link-class
        }
    }
}

rte.css

a.new-link-class {
  color: blue; 
}

I wanted to change the classes that are available for links within the RTE. In the RTE textbox itself, this works - but not entirely for the link wizard: It works on the first tab that is opened (see Attachment #2). After goingfor example to the tab "Mail", the classes are set back to default (Attachment #3). When I go back to the "Page" tab now (where it worked on opening), then there are the default classes now, too (Attachment #5).

When I set now the link as a mail with the shown default class and clicking then on the generated link in the RTE text box, there is the "Unknown text style" and my custom class (Attachment #6).

I tested this config in TYPO3 6.2.15 (Attachment #1), there it works as expected (for the entire link wizard, too (yes, also after changing the tab)).


Files

BromBeere-143.png (27 KB) BromBeere-143.png Attachment #1: The RTE config works as expected in TYPO 6.2.15 Tim Wehrmann, 2015-10-19 15:00
BromBeere-144.png (14 KB) BromBeere-144.png Attachment #2: In TYPO3 7 in the first (default) tab, there is the custom link class Tim Wehrmann, 2015-10-19 15:00
BromBeere-145.png (15.3 KB) BromBeere-145.png Attachment #3: In the mail tab then, the classes are the default ones Tim Wehrmann, 2015-10-19 15:00
BromBeere-146.png (14.7 KB) BromBeere-146.png Attachment #4: Same for the classes in "File" Tim Wehrmann, 2015-10-19 15:00
BromBeere_147.png (13.6 KB) BromBeere_147.png Attachment #5: And surprisingly the classes in the page tab are back to default, too Tim Wehrmann, 2015-10-19 15:00
BromBeere_148.png (44.2 KB) BromBeere_148.png Attachment #6: But in the RTE itself, it works - and after choosing a default class, this is displayed as "Unknown text style" Tim Wehrmann, 2015-10-19 15:00

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #64874: Clicking on directory in link wizard reloads window and deletes all entries the user made beforeClosed2015-02-05

Actions
Actions #1

Updated by Riccardo De Contardi almost 7 years ago

  • Status changed from New to Closed

This issue seems solved for RTEHtmlArea on 7.6.18 therefore I close it.

Test performed:

1) add to home page TSConfig the code provided in the issue description
2) create a text & media CE
3) add a link
4) page tab > the class "new-link-class" is available
5) switch to every other tabs (file, folder, external url, email) > the class is kept in the dropdown

If you think that this is the wrong decision or experience the issue again or have more information about how to reproduce it, please reopen it or open a new issue with a reference to this one.

Actions

Also available in: Atom PDF