Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 25.02.06, 17:28
TYPO3 Forum Team
Moderator
 
Registriert seit: 20.08.04
Ort: Zirndorf bei Nürnberg
Beiträge: 886
mavo eine Nachricht über ICQ schicken mavo eine Nachricht über Skype™ schicken

HtmlArea: Probleme mit der Zentrierung..


Hallo,

ich benutzte die Version 1.1.3 von rtehtmlarea und habe das Problem, dass meine Zentrierung des Textes nach dem Speichern verloren geht. Leider werden alle Align Tags nach dem Speichern vom RTE entfernt...

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:
# HTML Area
#RTE.default.skin = fileadmin/templates/htmlarea/htmlarea.css
RTE.default.contentCSS = fileadmin/templates/htmlarea/dynamiccss.css
RTE.default.enableWordClean = 1
RTE.default.removeComments = 1

        # RTE.default.showTagFreeClasses = 0
RTE.default.removeTags = font
RTE.default.removeTagsAndContents = style,script,font
RTE.default.useCSS = 1
RTE.default.hideTags =

RTE.default.disableSelectColor = 1
RTE.default.disableColorPicker = 0

RTE.default.showButtons = blockstylelabel, blockstyle, textstylelabel, textstyle, textindicator, copy, cut, paste, undo, redo, bold, italic, underline, left, center, right, justifyfull, orderedlist, unorderedlist, outdent, indent, insertcharacter, line, link, image, table,  findreplace,  removeformat, chMode,
RTE.default.toolbarOrder = textindicator, space, bar, copy, cut, paste, undo, redo, bar, bold, italic, underline, , left, center, right, justifyfull, bar, orderedlist, unorderedlist, outdent, indent, bar, linebreak, blockstylelabel, blockstyle, bar, textstylelabel, textstyle, bar, insertcharacter, line, link, image, bar,  table, findreplace, removeformat, chMode,

        # RTE.default.showButtons = blockstylelabel, blockstyle, textstylelabel, textstyle, textindicator, copy, cut, paste, undo, redo, bold, italic, underline, left, center, right, justifyfull, orderedlist, unorderedlist, outdent, indent, insertcharacter, line, link, image, table,  findreplace,  removeformat, chMode, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
# RTE.default.toolbarOrder = textindicator, space, bar, copy, cut, paste, undo, redo, bar, bold, italic, underline, , left, center, right, justifyfull, bar, orderedlist, unorderedlist, outdent, indent, bar, linebreak, blockstylelabel, blockstyle, bar, textstylelabel, textstyle, bar, insertcharacter, line, link, image, bar,  table, findreplace, removeformat, chMode, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmergeRTE.default.hideTableOperationsInToolbar = 1

RTE.default.proc {
// TRANSFORMATION METHOD
overruleMode = ts_css
// LINES CONVERSION
dontConvBRtoParagraph = 1
// BRING FONT TAGS INSIDE PARAGRAPHS
internalizeFontTags = 1
// TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img, hr ,address, style, align
// TAGS ALLOWED
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, font, tt, q, cite, abbr, acronym, address, sdfield, style, text-align
// TAGS DENIED
# denyTags >
// ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs = class, style, align
// ALLOWED CLASSES
# allowedClasses = _
// CONTENT TO DATABASE
entryHTMLparser_db = 1
entryHTMLparser_db {
// TAGS ALLOWED
allowTags < RTE.default.proc.allowTags
// XHTML COMPLIANCE
xhtml_cleaning = 1
// AVOID TO HSC TWICE
htmlSpecialChars = 0
// CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt,
tags.hr.allowedAttribs = class
// REMAP B AND I TAGS
tags.b.remap = strong
tags.i.remap = em
// REMOVE OPEN OFFICE META TAGS
removeTags = sdfield
// PROTECT CUSTOM TAGS
keepNonMatchedTags = protect
}
}

Leider funzt ja derzeit die Doku Seite von typo3.org net so dolle, so dass die Doku nimmer online ist.

Vielleicht kann mir ja jemand helfen, danke schon mal...
__________________
Ciao mavo
typoversion: 4.0.2 | domain: www.mavodesign.de

Geändert von Junior (01.03.06 um 08:44 Uhr).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 28.02.06, 14:08
TYPO3 Forum Team
Moderator
 
Registriert seit: 20.08.04
Ort: Zirndorf bei Nürnberg
Beiträge: 886
mavo eine Nachricht über ICQ schicken mavo eine Nachricht über Skype™ schicken

Niemand eine Idee??
Habe das Problem leider immer noch nicht lösen können...
__________________
Ciao mavo
typoversion: 4.0.2 | domain: www.mavodesign.de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 24.03.06, 08:20
Forum Newbie
 
Registriert seit: 24.03.06
Beiträge: 28

Habe auch gerade Probleme mit diesem RTE.

Wenn ich das richtig lese, dann hast du .proc Setting in der normalen pagetsconfig.txt deiner gewählten Konfig (typical=) angegeben. Da es eine generelle Config für .proc Direktiven zu geben scheint (in /res/proc/), weiß ich nicht, ob diese von deinen überlagert wird, wenn dort z.B. align Tags entfernt werden.
Auch sehe ich "align" nicht in deiner "allowTags" Liste.
So gut kenne ich mich nicht aus, aber ich denke doch, das sollte da rein, oder machst du align-Tags nur in <p> oder <div>?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 24.03.06, 12:37
Benutzerbild von LineMan
Forum Stammgast
 
Registriert seit: 04.09.04
Ort: Galadrien
Alter: 38
Beiträge: 156

ich weiss jetzt nicht, ob das auch auf denine version zutrifft, aber du musst wahrscheinlich einfach die entsprechende klasse, die um das objekt gelegt wird (heisst glaube ich 'class="align-center"' oder so ähnlich) in deinem css aufnehmen:

.align-center {text-align:center;}
__________________
46+2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #5  
Alt 24.03.06, 13:18
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, habe genau das selbe Problem mit der HMTLarea (wieso funktioniert bei der Standardmäßig eigentlich nix? )

Das Problem ist folgendes: Sobald mal Zentriert auswählt, zeigt er auch den text zentriert (im Quellcode wird der p-tag durch align ergänzt). Nur sobald man speichert, schmeisst er das wieder raus.

Die Anzeige ist also korrekt, HTMLarea schmeisst das nur wieder raus.

Zwei Feststellungen bislang:
  1. Auch mit den Standardeinstellungen passiert das
  2. Bei Überschriften lässt er es zu, die kann man zentrieren...
Beim letzteren Punkt werde ich mal ansetzen.

Grüße,
Ben~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #6  
Alt 27.03.06, 09:56
Forum Newbie
 
Registriert seit: 24.03.06
Beiträge: 28

Zitat:
Zitat von ben
Das Problem ist folgendes: Sobald mal Zentriert auswählt..
Grüße,
Ben~
Warum bei dem nichts geht? Auch keine Ahnung. Vielleicht Faulheit des Programmierers. Was soll ein HTML-Editor, wenn er die gängigsten Tags entfernt?

Zum Zentrieren: das ist so eine Sache. Wenn ich den Text einer einzelnen Zeile zentrieren will, dann macht der RTE daraus ein <div style="text-align:left;">, egal ob der Text Teil eines <p> ist oder nicht. Man achte auf align:left! Und es ist trotzdem zentriert, zumindest in der WYSIWYG Ansicht...
Alternativ wäre <center>, wenn Kollege HTMLarea das nicht killen würde. Und das tut er auch, wenn man es unter die "allowTags" gesetzt hat.

Dieser RTE ist unvollständig dokumentiert und umständlich zu konfigurieren. Tja, bloß es gibt keine Alternative.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #7  
Alt 27.03.06, 10: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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #8  
Alt 27.03.06, 13:10
Forum Zuschauer
 
Registriert seit: 27.03.06
Alter: 38
Beiträge: 1

LÖsung ?


Also ich hatte das selbe Problem, ich habe jetzt mit Extention Manager das Plugin "htmlArea RTE" auf Version 1.1.6 heruntergestuft (erst Deinstallieren dann über "Install from online repository" neu suchen und im Installationsfenster andere Version wählen.)

Dann habe ich wieder die neue Version 1.2.0 heruntergeladen.

Anschließend war das Problem verschwunden.

Ich hoffe diese Antwort bringt was .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #9  
Alt 27.03.06, 13:42
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

Nein, der Sache war ich grad selber auf der Spur.

Jetzt habe ich aber die Lösung:
Einfach in der Konfiguration im EM den Modus "Demo" auswählen. Dann klappts mit rechts - links - mitte. Sobald Typical gewählt ist, gehts nicht mehr...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #10  
Alt 14.04.06, 19:24
Benutzerbild von mic_jan
TYPO3 Forum Team
Administrator
 
Registriert seit: 05.09.04
Ort: Köln
Beiträge: 1.434

Zitat:
Zitat von ben
Nein, der Sache war ich grad selber auf der Spur.

Jetzt habe ich aber die Lösung:
Einfach in der Konfiguration im EM den Modus "Demo" auswählen. Dann klappts mit rechts - links - mitte. Sobald Typical gewählt ist, gehts nicht mehr...
aber das ist ja auch nicht wirklich eine Lösung :-|

Sonst noch Vorschläge?

Gruss,

Michael
__________________
Aus gegebenem Anlass mal eine neue Signatur:
Kein Support per PN!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Gelöst probleme mit htmlarea nach update auf 4.1.6 AndiLaken TYPO3 4.x Installation und Updates 1 23.05.08 11:43
Gelöst HtmlArea: Lösung des Problems mit der Zentrierung, Textausrichtung, Formatierung... Header und Body KliM TYPO3 3.x Rich Text Editor 0 15.11.07 10:44
htmlarea nameac TYPO3 4.x Rich Text Editor 1 16.09.07 19:07
Probleme bei der Installation von "htmlArea RTE" schmart TYPO3 3.x Rich Text Editor 2 07.06.06 09:10
Schwere probleme mit htmlarea cordes TYPO3 3.x Fragen und Probleme 0 04.02.06 21:04


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:52 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0