Zum Inhalt springen

eigene css klassen im RTE

Erstellt am 9. Dezember 2016 · Noch keine Antworten

Tags: TYPO3 7, Frage

Unbekannter Benutzer ·

Hallo

ich habe im Localhost das Update auf TYPO3 7.6.14 gemacht und gerade festgestellt das ich meine eigenen Klassen im RTE nicht mehr auswählen kann!

Es muss sich was verändert haben!

So im Installtool beim Upgrade Waizard bekomme ich das hier ausgespuckt.

Deprecated RTE properties in Page TSconfig

The following Page TSconfig RTE properties are deprecated since TYPO3 4.6 and have been removed in TYPO3 6.0.
Deprecated property	Use instead
disableRightClick	contextMenu.disable
disableContextMenu	contextMenu.disable
hidePStyleItems	buttons.formatblock.removeItems
hideFontFaces	buttons.fontstyle.removeItems
fontFace	buttons.fontstyle.addItems
hideFontSizes	buttons.fontsize.removeItems
classesCharacter	buttons.textstyle.tags.span.allowedClasses
classesParagraph	buttons.blockstyle.tags.div.allowedClasses
classesTable	buttons.blockstyle.tags.table.allowedClasses
classesTD	buttons.blockstyle.tags.td.allowedClasses
classesImage	buttons.image.properties.class.allowedClasses
classesLinks	buttons.link.properties.class.allowedClasses
blindImageOptions	buttons.image.options.removeItems
blindLinkOptions	buttons.link.options.removeItems
defaultLinkTarget	buttons.link.properties.target.default
fontSize	buttons.fontsize.addItems
RTE.default.classesAnchor	RTE.default.buttons.link.properties.class.allowedClasses
RTE.default.classesAnchor.default.[link-type]	RTE.default.buttons.link.[link-type].properties.class.default
mainStyleOverride	contentCSS
mainStyleOverride_add.[key]	contentCSS
mainStyle_font	contentCSS
mainStyle_size	contentCSS
mainStyle_color	contentCSS
mainStyle_bgcolor	contentCSS
inlineStyle.[any-keystring]	contentCSS
ignoreMainStyleOverride	n.a.
disableTYPO3Browsers	buttons.image.TYPO3Browser.disabled and buttons.link.TYPO3Browser.disabled
showTagFreeClasses	buttons.blockstyle.showTagFreeClasses and buttons.textstyle.showTagFreeClasses
disablePCexamples	buttons.blockstyle.disableStyleOnOptionLabel and buttons.textstyle.disableStyleOnOptionLabel

You are currently using some of these properties on 5 pages (including deleted and hidden pages).

Pages id's: 13319, 15531, 16065, 16551, 17035

This wizard cannot update the following properties, some of which are present on those pages:
Deprecated property
fontSize
RTE.default.classesAnchor
RTE.default.classesAnchor.default.[link-type]
mainStyleOverride
mainStyleOverride_add.[key]
mainStyle_font
mainStyle_size
mainStyle_color
mainStyle_bgcolor
inlineStyle.[any-keystring]
ignoreMainStyleOverride
disableTYPO3Browsers
showTagFreeClasses
disablePCexamples

Therefore, the Page TSconfig column of those pages will need to be updated manually.

Only page records are searched for deprecated properties. However, such properties can also be used in BE group and BE user records (prepended with page.). These are not searched nor updated by this wizard.

Page TSconfig may also be included from external files. These are not updated by this wizard. If required, the update will need to be done manually.

Note also that deprecated properties have been replaced in default configurations provided by htmlArea RTE

Das hilft mir erst einmal nur bedingt weiter.
Ich habe natürlich meinen TS Code mit den Ersatzbefehlen abgeändert, aber die Seite 12903 bleibt Fehlerhaft und ich kann die Klassen nicht auswählen?

Ich konnte es auf das hier weiter eingrenzen:

RTE.default {
  contentCSS = fileadmin/templates/fhamneu/css/classes.css
  showTagFreeClasses = 1
  
  # Classes: Eigene Stile
  buttons.textstyle.tags.span.allowedClasses = author
  buttons.image.properties.class.allowedClasses= rte_image
}

Und am Ende blieb showTagFreeClasses = 1 übrig.

buttons.blockstyle.showTagFreeClasses and buttons.textstyle.showTagFreeClasses hilft mir auch nicht weiter.

Ich kann keine Klassen mehr auswählen. Die werden einfach nicht mehr angezeigt.

Hat jemand für mich einen Beispielcode unter TYPO3 7.6?