P vor und nach UL - NICHT bei den items (li + p)

  • lizbet lizbet
    R2-D2
    0 x
    114 Beiträge
    0 Hilfreiche Beiträge
    21. 03. 2005, 13:26

    [b:5de6adeab6]t3 3.7.0
    cSet stylesheet[/b:5de6adeab6]

    [b:5de6adeab6]vorweg: es geht NICHT um Ps zwischen den LIs, SONDERN vor und nach den UL - die werden im BE und anschliessend im FE angezeigt.[/b:5de6adeab6] ist ja viell. trotzdem das gleiche prob - aber ich verstehs net.

    liebe forumler,
    das thema rte konfigurieren taucht wirklich alot auf, aber so richtig schluessiges finde ich nicht. (v.a. wo wird der rte im be als wysiwyg konfiguriert und wie die ausgabe im fe).

    also, folgendes problem: in einer seite mit aufzaehlung wird nach jedem speichern vor und nach der aufzaehlung (means vor und nach dem UL, nicht bei den einzelnen items) ein paragraph + leerzeichen eingebunden. ganz wurscht, ob ich etwas aendere - es genuegt einfach nur im rte speichern sagen und zack wieder ein p mehr drin.

    please helllllp.
    thanxalot fuer tipps und links....

    die daten:

    in root-constants:
    [code:1:5de6adeab6]
    content.stylesheet.file = fileadmin/ww_upload/css/styles.css
    content.RTE_compliant = 1
    content.space = 0|0
    content.headerSpace = 0|0
    [/code:1:5de6adeab6]

    in root-setup:

    [code:1:5de6adeab6]
    ...
    tt_content.stdWrap {
    space = 0|0
    spaceBefore = 0
    spaceAfter = 0
    dataWrap =
    }

    tt_content.text.20.parseFunc.denyTags =
    tt_content.text.20.parseFunc.allowTags = *
    tt_content.text.20.parseFunc.externalBlocks = ul, ol
    ...
    [/code:1:5de6adeab6]

    in root_tsconfig:
    [code:1:5de6adeab6]
    RTE.config.tt_content.bodytext.proc.allowedClasses >
    RTE.config.tt_content.bodytext.proc.entryHTMLparser_db = 1
    RTE.config.tt_content.bodytext.proc.entryHTMLparser_db {

    allowTags = class,span,UL,OL,LI
    }

    RTE.default {
    dontConvBRtoParagraph = 1
    allowTags = p,div,img,hr,a,br,pre,strong,em,span,dl,dt,dd,b
    preserveTags = HR,BR

    mainStyle_font = Arial
    mainStyle_size = 10px
    mainStyle_color = black
    mainStyle_bgcolor = white

    mainStyleOverride_add.P = font-family: Arial, ... margin: 0px 0px 0px 0px;
    mainStyleOverride_add.DIV = font-family: Arial, ... margin: 0px 0px 0px 0px;
    mainStyleOverride_add.H1 = font-family: Arial, ... margin: 0px 0px 4px 0px;

    hidePStyleItems = H2, H3, H4, H5, H6, PRE

    classesParagraph = P, H1
    classesCharacter = rot
    }

    RTE.default.proc {
    overruleMode = ts_css
    dontConvBRtoParagraph = 1
    internalizeFontTags = 0
    allowTags = p,div,img,hr,a,br,pre,span,dl,dt,dd,b
    allowTagsOutside = img,hr
    allowTagsInTypolists = br,b,i,u,a,img,span
    allowTags = table, tbody, tr, th, td, h1, h2, h3,
    h4, h5, h6, div, p, br, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, center
    # denyTags = p
    allowedClasses = rot
    keepPDIVattribs = align,class,style
    preserveTables = 1
    preserveTags = TYPOCODE, class, span
    typolist=0
    HTMLparser_rte {
    allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, center
    keepNonMatchedTags = 1
    }
    HTMLparser_db {
    allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, center
    keepNonMatchedTags = 1
    }
    }

    # Klassen

    RTE.classes {
    rot.name = Rot
    rot.value = color: #D61D1D;
    klein.name = Klein
    klein.value = font-size:8pt;
    }

    [/code:1:5de6adeab6]

    nochmal danke und auf antwort wartend
    liz


  • 1
  • fritzp fritzp
    T3PO
    0 x
    9 Beiträge
    0 Hilfreiche Beiträge
    12. 04. 2005, 10:30

    Hallo,

    hab mir daran auch die zähne ausgebissen, ca 7 stunden!

    lib.parseFunc_RTE.externalBlocks = ul,ol,table
    ins setup und es geht,
    jetzt muss ich nur noch die p-tags in den Tabellenzellen loswerden...

    gruss
    fritz

  • lizbet lizbet
    R2-D2
    0 x
    114 Beiträge
    0 Hilfreiche Beiträge
    12. 04. 2005, 14:25

    [quote:2a18a4d62f="fritzp"]lib.parseFunc_RTE.externalBlocks = ul,ol,table
    ins setup und es geht,
    jetzt muss ich nur noch die p-tags in den Tabellenzellen loswerden...
    [/quote:2a18a4d62f]

    :( ne, funkt nicht. wenn's bei dir geht, dann wuerde ich noch die tds mit dazunehmen.

    [code:1:2a18a4d62f]lib.parseFunc_RTE.externalBlocks = ul,ol,table,td
    [/code:1:2a18a4d62f]
    wie hast du denn deinen RTE sonst so konfiguriert,? vielleicht knallt es bei mir ja, weil das nicht sauber ist. ich muss gestehen, so ganz blick ich einfach nicht, welcher code wo (setup, constants) gesetzt werden muss, damit zum einen der RTE wysiwyg laeuft und zum andern das, was da getextet wird, auch entsprechend im FE realisiert wird..

    danke erst mal
    liz

  • fritzp fritzp
    T3PO
    0 x
    9 Beiträge
    0 Hilfreiche Beiträge
    15. 04. 2005, 10:53

    Hi,

    also hier meine komplette, mehr oder weniger dokumentierte RTE Konfiguration.
    Das Problem mit den tableenzellen ist dabei auch gelöst.

    Liebe Grüsse

    User TS config

    #options.HTMLAreaPluginList = #DynamicCSS,TYPO3Browsers,FindReplace,RemoveFormat,EnterParagraphs,ContextMenu
    #neu:
    setup.default.edit_RTE = 1
    options.RTEkeyList = *
    #einschränkung in Page TSConfig

    # options.HTMLAreaPluginList jetzt in extension selbst konfiguriert
    # all plugins: SpellChecker, ContextMenu, SelectColor, TYPO3Browsers, InsertSmiley, FindReplace, RemoveFormat, CharacterMap, QuickTag, InlineCSS, DynamicCSS
    #plugins not included: TableOperations,

    Page TS config

    ## RTE Configuration ##

    RTE.default {
    contentCSS = fileadmin/css/basis.css
    showTagFreeClasses = 1
    enableWordClean = 1
    #auswahl der absatzstile
    hidePStyleItems = H4,H5,H6
    #auswahl der Quick-Tags
    hideTags = address, big, fieldset, font, font (full), h1, h2, h3, h4, h5, h6, legend, small, sub, sup, table, tt, q, cite
    #mit: a, a (full), abbr, acronym, b, blockquote, code, div, em, i, li, ol, ul, p, pre, span, strong, abbr, acronym
    hideButtons = copy, cut, paste, line, textstylelabel, textstyle, fontstyle, fontsize, emoticon, strikethrough, subscript, superscript, lefttoright, righttoleft, left, center, right, justifyfull, textcolor, bgcolor
    # liste aller buttons: # blockstylelabel, blockstyle, formatblock, bold, italic, underline, # orderedlist, unorderedlist, outdent, indent,, textindicator, , insertcharacter, # link, image, table, findreplace, spellcheck, chMode, inserttag, #removeformat, undo, redo, showhelp, about
    # bestimmt anordung der buttons
    toolbarOrder = blockstylelabel, blockstyle, space, formatblock, space, bar, space, textindicator, space, bar, link, space, inserttag, space, bar, space, bold, italic, underline, bar, orderedlist, unorderedlist, bar, outdent, indent, bar, insertcharacter, image, table, findreplace, spellcheck, removeformat, space, bar, undo, redo, bar, space, showhelp, about, space, space, space, chMode
    #Note: The keywords space, bar and linebreak may be used to insert a space, a separator or a line break at the corresponding position in the toolbar.
    }

    RTE.default.proc {
    overruleMode = ts_css
    dontConvBRtoParagraph = 0
    keepPDIVattribs=class,id
    #funktioniert nicht bei nested elements
    denyTags = *
    allowTags = h1, h2, h3, div, p, br, span, ul, ol, li, pre, blockquote, strong, em, b, i, a, img, nobr, hr, abbr, acronym
    # führt zu umlaut-entity freier zone:
    dontHSC_rte = 1

    #verhindert die übernahme von font-tags etc. in db (nix nested)
    #CONTENT TO DATABASE
    HTMLparser_db = 1
    HTMLparser_db {
    allowTags < RTE.default.proc.allowTags
    denyTags < RTE.default.proc.denyTags
    }
    #wirft interessanterweise die font tags in listen und hx raus
    #CONTENT leaving RTE
    exitHTMLparser_rte = 1
    exitHTMLparser_rte {
    allowTags < RTE.default.proc.allowTags
    denyTags < RTE.default.proc.denyTags
    }
    }

    ## RTE Configuration END##

    FE Ausgabe in Haupttemplate Setup

    #RTE und FE Ausgabe; konfiguration bzgl. tags, listen, tabellen
    #RTE relevant, alles was nicht erlaubt ist ist verboten
    lib.parseFunc.denyTags = *
    #font etc. darf hier nicht drin sein! (allow überwiegt deny)
    lib.parseFunc.allowTags = b,i,u,a,img,br,div,pre,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,h1,h2,h3

    #für die ausgabe auf website entscheidend, d.h. wie db inhalt zu FE geparst wird
    lib.parseFunc_RTE.denyTags < lib.parseFunc.denyTags
    lib.parseFunc_RTE.allowTags < lib.parseFunc.allowTags

    #wichtig, damit die nicht in p gewrappt werden
    lib.parseFunc_RTE.externalBlocks = ul,ol,table
    #wenn ein table eine class hat, wird die verwendet, sonst class=contenttable
    lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list >
    #nochmaliges parsen von tabellenzellen auschalten, damit inhalte nicht wieder in p gepackt werden
    lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.callRecursive = 0

    #bastelt die content anker, derzeit nicht nötig und valide
    #default: tt_content.stdWrap.dataWrap = <a name="{field:uid}" id="{field:uid}"></a> |
    tt_content.stdWrap.dataWrap = |

  • 1