1
votes

I added a new link class to the TYPO3 (6.2.14) RTE like shown below

RTE {
    classesAnchor {
        myNewClass {
            class = very-long-class additional-class
            type = page
        }
    }
    default {
        proc.allowedClasses := addToList(very-long-class additional-class)
        buttons {
            link.properties.class.allowedClasses := addToList(very-long-class additional-class)
        }
    }
}

Everything works fine and the editor can choose the new link style when he selects some text in the RTE and creates a link (shown below).

enter image description here

My problem is, that the link name is not really understandable. Is it possible to define a name or label for the link (changing the class-name is not an option), so the "Style" field will show a more understandable name?

1

1 Answers

1
votes

The names are set in "classes" of the RTE object. The value are any CSS-styles to give a hint, how it looks like.

RTE.classes {
    your-class-name {
        name = Your Awesome Class Name
        value = margin: 2px; padding: 2px; background: #00b5dc; color: #fff; border: 1px solid #3a6674;
    }
}