Zum Inhalt springen

<p class"bodytext"> um ALLES - verhindern?

Erstellt am 11. November 2005 · 6 Antworten · letzte Antwort am 26. Februar 2006

Tags: HTML & CSS, Frage

Unbekannter Benutzer ·

Huhu,

habe folgendes Problem: bei mir wird ein <p class="bodytext"> um den kompletten Inhalt des RTE gewrapped, allerdings erst im Frontend.

Beispiel:

<p class="bodytext">
<h1>Überschrift</h1>
<h2>Überschrift</h2>
<p>Das ist ein Text.</p>
<p>Das auch!</p>
</p>

Mein TSConfig:

setup.default.edit_RTE = 1

RTE.default >

RTE.default {

  disableColorPicker = 1
  hidePStyleItems=H4,H5,H6,PRE,ADDRESS
  showButtons = *
  hideButtons = inserttag,emoticon,strikethrough,subscript,superscript,justifyfull,insertorderedlist,outdent,indent,textcolor,forecolor,hilitecolor,bgcolor,textindicator,inserthorizontalrule,popupeditor,lefttoright,righttoleft,fontname,fontsize,fontstyle,user,acronym,line
  blindImageOptions = magic
  enableWordClean = 1
  showTagFreeClasses = 1
  contentCSS = fileadmin/templates/css/rte.css
  mainStyle_font=verdana, sans-serif
  removeTags = font
  removeComments = 1

  proc {

    typolist = 1
    dontConvBRtoParagraph = 1
    allowTagsInTypolists = br,strong,em,u,a,img,span,div,p,li,ul
    denyTags = *
    allowTags = img, table, tr, td, thead, tbody, th, h1, h2, h3, div, p, br, ul, ol, li, pre, blockquote, strong, em, a
    preserveTables = 1
    allowTagsOutside=SPAN,IMG,TABLE,TD,TR,UL,LI
    allowedClasses >

    entryHTMLparser_db = 1
    entryHTMLparser_db {

      allowTags < RTE.default.proc.allowTags
      xhtml_cleaning = 1
      htmlSpecialChars = 0
      noAttrib = b, i, u, strike, sub, sup, strong, em, quote,  blockquote, cite, tt, br
      rmTagIfNoAttrib= span,div,font
      tags.b.remap = strong
      tags.i.remap = em
      removeTags = sdfield
      keepNonMatchedTags = 1

      }

    }

  }

RTE.config.tt_content.bodytext < RTE.default

Hat jemand eine Idee?

Dank im Voraus.

humpun ·
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >

Das sollte das bodytext wegmachen als Klasse.

Das ganze P drumherum kriegst du per :

 tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines >
      tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines {
        encapsTagList = div,p
        removeWrapping = 1
        wrapNonWrappedLines = |<br>
      }

weg.

Mfg

humpun

akonze ·

Einfach beide Code Teile in dein Template in den Setup Bereich ganz nach unten stellen, dann solte es funktionieren. Habe es mal bei mir getestet und es läuft einwandfrei. Den BR Tag solltest du in dem Beispiel aber noch sauber schliessen, sonst ist es kein valides HTML.

DiePicknickerin ·

Hallo, mal ne Frage dazu:

Hat es eine Auswirkung, wenn das RTE-Config im Template Setup ziemlich weit oben steht?
Ich wundere mich gerade darüber, habs aber noch nicht ausprobiert...

Gruß, Miriam

Mauki ·
humpun schrieb
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >

Das sollte das bodytext wegmachen als Klasse.

Das ganze P drumherum kriegst du per :

 tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines >
      tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines {
        encapsTagList = div,p
        removeWrapping = 1
        wrapNonWrappedLines = |<br />
      }

weg.

Hab das auch mal ausprobiert, aber meine <p> Tags sind nachwievor vorhanden ?

Ist das eigentlich richtig das hier am Schluß nur ein > steht aber am Anfang kein < ?

lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >