Zum Inhalt springen

Blocksatz im RTE

Erstellt am 3. September 2003 · 14 Antworten · letzte Antwort am 27. November 2006

Tags: Frage

hiwi ·

Hallo,
besteht irgendwie die Möglichkeit in der RTE Toolbar die Funktion Blocksatz einzufügen.
Hiwi

marksta ·

hallo hiwi,

ich kenne keinen html-tag oder so der Blocksatz produziert. Aus diesem Grund vermute ich, das es Blocksatz überhaupt nicht gibt.

Falls du aber mal eine Seite mit Blocksatz gesehen hast, poste doch bitte den Link.

Gruss,
Markus

Julian ·

Wobei natürlich angemerkt werden muss, dass es mit Styles schon geht 🙂 Wenn ich im RTE Blocksatz verwenden will, schalte ich eben diesen aus und verwende für den Text meinen CSS-Style-Befehl für Blocksatz.

Viele Grüße,
Julian

hiwi ·

Das mit dem HTML Tag funktioniert schon wenn ich von hand eingebe,
möchte ihn für die anderen User in der Toolbar implementiern.
Die Frage ist eigentlich nur in welcher Datei ich etwas verändern müsste
bzw. ob es reicht wenn ich in TSConfig etwas verändere.
Hiwi

TW ·

hi
warum gibst du nicht am anfang und ende jeder spalte

[BLOCKQUOTE][/BLOCKQUOTE]

ein

webautor ·

Hallo,

es gibt tatsächlich eine Lösung und zwar eine sehr elegante.

Füge entweder in die CSS-Datei ein:
.blocksatz {text-align:justify;}

oder ins Template Setup der root-Seite:
page.CSS_inlineStyle = .blocksatz {text-align:justify;}

Dann kommt ins Feld "TSconfig:" des Seitenheaders der root-Seite:

RTE.config.tt_content.bodytext.proc.allowedClasses >
RTE.classes {
blocksatz {
name = Blocksatz
}
}
classesParagraph = blocksatz
RTE.default {
mainStyleOverride (
BODY {
border: 1px black solid;
border-top: none;
margin : 2 2 2 2;
font-family:Verdana;
font-size:10px;
color:black;
background-color:white;
}
TD {font-family:Verdana; font-size:10px;}
P {margin-top:4px; margin-bottom:0px;}
DIV {margin-top:4px; margin-bottom:0px;}
DIV.blocksatz {text-align:justify;}
OL {margin: 5px 10px 5px;}
UL {margin: 5px 10px 5px;}
BLOCKQUOTE {margin-top:0px; margin-bottom:0px;}
H1 {font-size:16px;margin-top:4px;margin-bottom:2px;}
H2 {font-size:13px;margin-top:4px;margin-bottom:2px;}
H3 {font-size:11px;margin-top:4px;margin-bottom:1px;}
)
}

Die Caches löschen nicht vergessen.
Im RTE erscheint dann im Menü des Buttons "Absatzart" nach H1, H2 ... nun "Blocksatz". Wenn man diesen auswählt, wird der jeweilige Absatz sowohl im RTE als auch auf der Webseite im Blocksatz dargestellt. Allerdings muss die Absatzart für jeden Absatz einzel ausgewählt werden. (Weiß jemand dafür eine Lösung?)

Es ist doch immer wieder überraschend, was Typo3 so alles kann...
...wenn man den entsprechenden "Schalter" kennt.

Gruß Peter

FotoHorst ·

das ist sehr nützlich .... schön schön

... und jetzt noch den code für automatische silbentrennung #giggle#

pixelmanagement ·
webautor schrieb

oder ins Template Setup der root-Seite:
page.CSS_inlineStyle = .blocksatz {text-align:justify;}

Dann kommt ins Feld "TSconfig:" des Seitenheaders der root-Seite:

RTE.config.tt_content.bodytext.proc.allowedClasses >
RTE.classes {
blocksatz {
name = Blocksatz
}
}
classesParagraph = blocksatz
RTE.default {
mainStyleOverride (
BODY {
border: 1px black solid;
border-top: none;
margin : 2 2 2 2;
font-family:Verdana;
font-size:10px;
color:black;
background-color:white;
}
TD {font-family:Verdana; font-size:10px;}
P {margin-top:4px; margin-bottom:0px;}
DIV {margin-top:4px; margin-bottom:0px;}
DIV.blocksatz {text-align:justify;}
OL {margin: 5px 10px 5px;}
UL {margin: 5px 10px 5px;}
BLOCKQUOTE {margin-top:0px; margin-bottom:0px;}
H1 {font-size:16px;margin-top:4px;margin-bottom:2px;}
H2 {font-size:13px;margin-top:4px;margin-bottom:2px;}
H3 {font-size:11px;margin-top:4px;margin-bottom:1px;}
)
}

Hab alles genauso durchgeführt wie oben beschrieben, jedoch erscheint bei mir der Blocksatz nicht o.O

Hat es bei jemandem von Euch schon geklappt? Oder weiss sonst noch jemand Rat zu diesem Problem?

Gruß Basti

pixelmanagement ·
greenbanana schrieb

Hmm.... also bei mir geht das so auch nicht. hat das jemand schon am laufen?

Hi, habs jetzt so gemacht, dass ich einen alternativen Editor installiert habe, der den Blocksatz schon mit drin hat. Schau mal hier: #20200

Gruß Basti