Einzelnen Beitrag anzeigen
  #7  
Alt 27.03.06, 11:34
Benutzerbild von ben
ben ben ist offline
Forum Stammgast
 
Registriert seit: 07.03.05
Ort: Düsseldorf
Beiträge: 189
ben eine Nachricht über ICQ schicken

Heyho, das hört sich ja sehr komisch an.
Ich nutze HTMLArea 1.2.0 auf einem Typo3 381 System.

Folgende Konfiguration im TS Config, ansonstne gibt es keine Angaben meinerseits:
Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
#Eigenes CSS einbinden
RTE.default.useCSS = 1
RTE.default.contentCSS = fileadmin/templates/basis/extensions/htmlarea.css
#Diverse Config
RTE.default.enableWordClean = 1
RTE.default.removeComments = 1
RTE.default.disableEnterParagraphs = 1
#Clean Styles
RTE.default.hideButtons = fontstyle, fontsize, lefttoright, righttoleft, inserttag
RTE.default.hidePStyleItems = PRE
RTE.default.hideTags = font, font (full)
# siehe oben ausführlich
RTE.default.showTagFreeClasses = 1
#RTE.default.classesImage = blauerRand, 10pxAbstand
#RTE.default.classesAnchor = intern, extern, mailto
#RTE Einstellungen
RTE.default.showStatusBar = 1

## Default RTE processing rules
RTE.default.proc {
overruleMode = ts_css
dontConvBRtoParagraph = 1
remapParagraphTag = p
allowTagsOutside = hr, address, h1, h2, h3, h4, h5, h6
allowTags (
  a, abbr, acronym, address, blockquote, b, br, caption, cite, code, div, em,
  h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield,
  span, strong, sub, sup, table, tbody, td, th, tr, tt, ul, align
)
denyTags >
  ## ALLOWED P & DIV ATTRIBUTES
  ## Attributes class and align are always preserved
  ## Align attribute will be unset on entry (see below)
  ## This is a list of additional attributes to keep
keepPDIVattribs = xml:lang
entryHTMLparser_db = 1
entryHTMLparser_db {
allowTags < RTE.default.proc.allowTags
denyTags >
htmlSpecialChars = 1

tags {
  ## REMOVE IMG TAGS
img.allowedAttribs = 0
img.rmTagIfNoAttrib = 1
  ## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
span.fixAttrib.style.unset = 1
p.fixAttrib.align.unset = 1
div.fixAttrib.align.unset = 1
hr.allowedAttribs = class
b.allowedAttribs = xml:lang
blockquote.allowedAttribs = xml:lang
cite.allowedAttribs = xml:lang
em.allowedAttribs = xml:lang
i.allowedAttribs = xml:lang
q.allowedAttribs = xml:lang
strong.allowedAttribs = xml:lang
sub.allowedAttribs = xml:lang
sup.allowedAttribs = xml:lang
tt.allowedAttribs = xml:lang
p.allowedAttribs = align
}
removeTags = font, sdfield, strike, u
keepNonMatchedTags = protect
}

HTMLparser_db {
noAttrib = br
xhtml_cleaning = 1
}

exitHTMLparser_db = 1
exitHTMLparser_db {
tags.b.remap = strong
tags.i.remap = em
keepNonMatchedTags = 1
htmlSpecialChars = 1
}
}

RTE.config.tt_content.bodytext >
RTE.config.tt_content.bodytext.proc.overruleMode = ts_css
RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css
RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css

Wenn ich im Editor jetzt eine Überschrift und einen Absatz zentriere fügt er sowohl dem h1 tag, als auch dem P-tag das Attribut "align=center" zu.

Nach dem speichern hat allerdings nur noch der H-Tga das Attribut. Rumprobiert habe ich schon so einiges, aber auf ne Lösung komme ich nicht...
Mit Zitat antworten