Hallo, ihr Schlauen !
Um für die Redakteure den Umgang mit der sg_glossary-Extension zu erleichtern, möchte ich einen special tag "<LEX> als userElement im RTE zur Verfügung stellen.
So muß der Redakteur nicht von Hand "<LEX>Zu wrappender Text</LEX>" eingeben,
sondern markiert "Zu wrappender Text", klickt auf das userElement,
und erhält letzendlich "<LEX>Zu wrappender Text</LEX>".
So weit die schöne Theorie.
Verwende ich statt meines LEX-tags z.B. "sub" oder so,
funktioniert das auch, nur nicht mit LEX oder irgendeinem anderen mytag.
Auf typo3org fand ich folgenden Thread :
Hi all,
I have a question with the RTE configuration :
I use the ts_css overrulemode, i think it gives good results.
The problem I have is : i can't use special typotags like
<linkpop></linkpop> or <MySpecialGoodList></MySpecialGoodList> in order to
make a popup (or special FE treatment ) because the RTE removes the tags.What i want to do is create a RTE userElement who will wrap the text with my
specials tags, and then display the HTML i want in the FE (using the
parseHTML fonctions)I have set the allowTags attribute for adding the "myTag" tag (is there a
way of just adding one tag to the list instead of retyping the entire list
of allowed tags with allowTags ?)
here is the allow tags in the pagetsconfigRTE.default.proc.overruleMode = ts_css
RTE.default.proc.allowTags=mytagRTE.default.proc.entryHTMLparser_db = 1
RTE.default.proc.entryHTMLparser_db {
allowTags = mytag
}RTE.default.proc.entryHTMLparser_rte = 1
RTE.default.proc.entryHTMLparser_rte {
allowTags = mytag
}RTE.default.proc.exitHTMLparser_db = 1
RTE.default.proc.exitHTMLparser_db {
allowTags = mytag
}RTE.default.proc.exitHTMLparser_rte = 1
RTE.default.proc.exitHTMLparser_rte {
allowTags = mytag
}In the pageTSConfig i also have :
RTE.default.userElements {
# Category with various elements
10 = Various elements | Diverse elements
10 {
# The text-selection is wrapped with <mytag> tags.
1 = Special tag
1.description = Selected text is wrapped in <mytag>-tags.
1.mode = wrap
1.content = <mytag>|</mytag>
)
}when i use the user element on "my text", the result in the HTML source is :
"my text </mytag>" instead of "<mytag>my text</mytag>"... is there another
fonction to use ? have you a better way of doing that ? what can i do ?Thanks in advance and sorry for my horrible english
Guillaume
[TOP] 06-11-2003 17:50 by Patrick Gaumond, patrick.gaumond(AT)fsa.ulaval.ca gaumondp
"Guillaume VANDENBROUCKE" <gvandenbroucke(at)kleegroup.com> a écrit dans le message de
> I have set the allowTags attribute for adding the "myTag" tag (is there a
> way of just adding one tag to the list instead of retyping the entire list
> of allowed tags with allowTags ?)
> here is the allow tags in the pagetsconfig
>
>
> RTE.default.proc.entryHTMLparser_db = 1
> RTE.default.proc.entryHTMLparser_db {
> allowTags = mytag
> }
>> when i use the user element on "my text", the result in the HTML source is :
> "my text </mytag>" instead of "<mytag>my text</mytag>"... is there another
> fonction to use ? have you a better way of doing that ? what can i do ?Salut Guillaume.
The trick we discovered THIS morning (after 2 months of frustration) is to add "htmlSpecialChars = -1"
RTE.default.proc.entryHTMLparser_db = 1
RTE.default.proc.entryHTMLparser_db {
htmlSpecialChars = -1
allowTags = mytag,table,tr,td,div,img,hr,b,i,u,a,br,pre,strong,em,li,ul,ol,h1,h2,h3,h4,h5,h6,span,p,b,th
}REF: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Htmlparser.html
Please tell us if it works for you.
Patrick Gaumond
Québec
Also fügte ich "htmlSpecialChars = -1" ein,
das brachte aber leider nichts,
nach wie vor erhalte ich "Zu wrappender Text</LEX>"
Hat irgendwer von euch eine Lösung für mein Problem ??
viele Grüße
jenses