Zum Inhalt springen

RTE htmlarea in FCE - Keine Formatierungen möglich - br/p/a href

Erstellt am 4. Oktober 2005 · 6 Antworten · letzte Antwort am 4. Oktober 2005

Tags: Frage

d.​i.​c.​s.​h.​e ·

Tag zusammen.

Ich habe in meinem "Textarea for bodytext" Element den RTE wie folgt eingebunden:

<t3datastructure>
    <root type="array">
        <tx_templavoila type="array">
            <title>ROOT</title>
            <description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
        </tx_templavoila>
        <type>array</type>
        <el type="array">
            <headline_white type="array">
                <tx_templavoila type="array">
                    <title>headline_white</title>
                    <description>hier headline_white</description>
                    <sample_data type="array">
                        <numindex index="0">[headline_white]</numindex>
                    </sample_data>
                    <etype>input_h</etype>
                </tx_templavoila>
                <tceforms type="array">
                    <config type="array">
                        <type>input</type>
                        <size>48</size>
                        <eval>trim</eval>
                    </config>
                    <label>headline_white</label>
                </tceforms>
            </headline_white>
            <headline_brown type="array">
                <tx_templavoila type="array">
                    <title>headline_brown</title>
                    <description>hier headline_brown</description>
                    <sample_data type="array">
                        <numindex index="0">[headline_brown]</numindex>
                    </sample_data>
                    <etype>input_h</etype>
                </tx_templavoila>
                <tceforms type="array">
                    <config type="array">
                        <type>input</type>
                        <size>48</size>
                        <eval>trim</eval>
                    </config>
                    <label>headline_brown</label>
                </tceforms>
            </headline_brown>
            <bodytext type="array">
                <tx_templavoila type="array">
                    <title>bodytext</title>
                    <description>hier bodytext</description>
                    <sample_data type="array">
                        <numindex index="0">[bodytext]</numindex>
                    </sample_data>
                    <etype>text</etype>
                    
      <typoscript>
      [CDATA[
      10 = TEXT
      10.current = 1
      10.parseFunc = < lib.parseFunc_RTE
      ]]
      </typoscript>
      <proc type="array">
      <hsc type="integer">0</hsc>
      </proc> 

                </tx_templavoila>
                <tceforms type="array">
                    <config type="array">
                        <type>text</type>
                        <cols>48</cols>
                        <rows>5</rows>
                    </config>
                    <label>bodytext</label>
                    <defaultextras>richtext[ * ] :rte_transform[mode=css]</defaultextras>
                    
                </tceforms>
            </bodytext>
        </el>
    </root>
</t3datastructure>

Der RTE erscheint und funktioniert im Backend enwandfrei. Formatierungen setzt er in HTML um und speichert sie. Im Frontend sind diese leider nicht korrekt sichtbar. Links erscheinen als LINK, P und BR-Tags überhaupt nicht

Eingehendes Studium des Forums brachte ein paar Threads zu diesem Thema zu Tage, deren Lösungen mir aber nicht halfen.

Auch der Entrag im Wiki http://wiki.typo3.org/index.php/TemplaVoila#Enabling_RTE_in_FCEs_.28additional_comment.29 half nichts, denn genau so habe ich es ja gemacht.

Muss hier noch was ins TS-Template oder was kann's sein?

d.​i.​c.​s.​h.​e ·

Das Ändern von

[mode=css]

auf

[mode=ts_css]

und wieder zurück hat den RTE in Gang gesetzt. Nun scheinen die Formatierungen durchgereicht zu werden. Einzig die P-Tags erscheinen nicht im Frontend. Da half mir dieser Beitrag leider auch nicht: #24527.

Jemand ne Idee?

demeter ·

danach wirst das wahrscheinlich auch nochmal einfügen müssen

 <TypoScript>
      [CDATA[
      10 = TEXT
      10.current = 1
      10.parseFunc = < lib.parseFunc_RTE
      ]]
      </TypoScript>
      <proc type="array">
      <hsc type="integer">0</hsc>
      </proc>

gruss

demeter ·

oops gleichzeitig

#einbindung des RTE in der TSconfig der Root-Page
#*************************************************#


#General configuration of the available points of doing
 
# Zum Anzeigen der Schaltflächen
RTE.default.showButtons = cut,copy,paste,formatblock,class,fontstyle,fontsize,textcolor,bold,italic,underline,left,center,right,orderedlist,unorderedlist,outdent,indent,link,table,bgcolor,image,emoticon,line,user,chMode 
#Zum Ausblenden der Schaltflächen
RTE.default.hideButtons = 

# General configuration of the available classes:
RTE.classes {
  text-normal {
    name = Artikeltext (Primary)
    value = #font-family: Arial, Helvetica, sans-serif; font-size: 12px;font-style: normal; font-weight: normal; font-variant: normal; margin: 0px; padding: 0px;	line-height: 16px; color:#1C2666;
    }
  text-ueberschrift-normal {
    name = ueberschrift (Primary)
    value = #font-family: Arial, Helvetica, sans-serif; font-size: 22px;font-style: normal; font-weight: normal; font-variant: normal; margin: 0px; padding: 0px; line-height: 16px; color:#1C2666;
    }
  navi-unten {
    name = für die Fusszeile (Primary)
    value = 	font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; color: #D2E6FF; margin: 0px;padding: 0px; text-align:right;
    }

}

# Specific configuration for the Character Style menu:
# die Reihenfolge der Anweisung wird im RTE übernommen
# classesCharacter = die css class
# classesParaqgraph = "bin ich ein p oder h" (Absatzarten)
###########################################################

RTE.default.classesCharacter = text-normal,text-ueberschrift-normal,navi-unten,
RTE.default.classesParagraph = text-normal,text-ueberschrift-normal,navi-unten



# Verstecken der Absatzarten
##############################

RTE.default.hidePStyleItems=h3,h4,h5,h6



 
# General configuration of the available colors:
RTE.colors {
  black {
    name = schwarz
    value = #000000
  }
  navi-unten {
    name = Footerfarbe
    value = #D2E6FF
  }
  linkfarbe {
    name = Linkfarbe
    value = #1C2666
  }

}
# Specific setting for the font color selector:
RTE.default.colors = black,linkfarbe,navi-unten,businesslinks
RTE.default.disableColorPicker = 1
##############################################

zusätzlich müssen die classes im css definiert sein
damit im frontend der code sauber umgesetzt wird musst du in der reihenfolge formatieren:
der absatz und dann die class
gruss