<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=389560906-29072006><FONT face=Arial
color=#0000ff size=2>Andres -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=389560906-29072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=389560906-29072006><FONT face=Arial
color=#0000ff size=2>I think Christian and others did understand you and answer
you. Your question "How can I add my own styles in a toolbar within
FCKEditor?" has the answer "by defining CSS files and XML files in the way
described by Christian and others".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=389560906-29072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=389560906-29072006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>ANDRES
SAYAGO<BR><B>Sent:</B> 28 July 2006 15:42<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] How can I do to add my
own styles in a toolbar withinthe FCKeditor<BR></FONT><BR></DIV>
<DIV></DIV><BR>Hello again!<BR><BR>I got messages about styles, but they wasn't
about my specific problem.<BR><BR>The question is not how can I do to use styles
in a HTML page using a CSS file!!<BR><BR>My specific question is: "How can I do
to add my own styles in a toolbar within the FCKeditor". I need the option to
select MY OWN style through an ICON in the toolbar.<BR><BR>My first idea was to
modify the file where I can see the 10 styles predefined in the FORMAT select
list of the FCKEditor.<BR><BR>Can you understand to me? Can you help
me?<BR><BR>Please!!!!!!<BR><BR><BR><BR>Christian Steinert escribió:
<BLOCKQUOTE cite=mid44C7F7FE.3000408@web.de type="cite"><PRE wrap="">Dear Andres,
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">For example, this is something of its content:
---
<Style name="Custom Bold" element="span">
<Attribute name="style" value="font-weight: bold;" />
</Style>
---
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
this would create the following code, as soon as you assign the style:
<span style="font-weight:bold">SELECTED_TEXT</span>
In this example SELECTED_TEXT is, whatever text you have selected before
selecting the style. Of course using a centralized css file - like you
want to do it - is much better than adding the style properties directly.
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">But, if I have a normal CSS file, with content like this:
---
.Fecha {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;
color: #333333; font-weight: normal; padding-left: 8px;
}
.Titulo_1 {
font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 20px; color:#EA3D46; font-weight: bold; text-decoration: none;
}
---
How can I do to make the sentences with the XML structure?
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
If you want to point to a style of your stylesheet then of course your
stylesheet must be linked to your JSP template (the name of the CSS file
must be contained in the "template" property).
You also have to point to your CSS file in the <head> section of your
html pages by using something like this:
<link rel="stylesheet" type="text/css" href="/path/to/style.css" />
then you add config entries like this to your style.css_styles.xml:
<Style name="Fecha" element="span">
<Attribute name="class" value=".Fecha" />
</Style>
The HTML code that FCKeditor inserts will then be:
<span class="Fecha">SELECTED_TEXT</span>
________
-OR- if you want to create a block element instead, then you could
you could create a different tag, instead of span:
for example a <div> or a <p>
by using
<Style name="Fecha" element="div"> ...
<Style name="Fecha" element="p"> ...
etc.
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">PLEASE, HELP ME!!
</PRE></BLOCKQUOTE><PRE wrap=""><!---->I hope this does help.
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">Andrés
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
Christian
</PRE><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<A class=moz-txt-link-freetext href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</A></PRE></BLOCKQUOTE><BR><BR>
<DIV class=moz-signature>-- <BR>
<TABLE class=MsoNormalTable height=527 cellSpacing=1 cellPadding=0 width=496
border=0>
<TBODY>
<TR>
<TD
style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; WIDTH: 215.25pt; PADDING-TOP: 0.75pt"
width=287>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><IMG height=91 alt="WebStudio S.A."
src="cid:389560906@29072006-21FF" width=187
border=0><O:P></O:P></SPAN></FONT></P></TD></TR>
<TR>
<TD
style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
<P class=MsoNormal><SPAN class=estilo21><FONT face=Verdana color=#0000ff
size=1><SPAN style="FONT-SIZE: 9.5pt"><B>J. Andrés Sáyago
P.</B></SPAN></FONT></SPAN><FONT face=Verdana color=#0000ff size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Verdana"><BR><SPAN
class=estilo21><FONT face=Verdana color=#0000ff>Ingeniero de
Desarrollo</FONT></SPAN><BR><SPAN class=estilo21></SPAN><SPAN
class=estilo21></SPAN><SPAN class=estilo21><FONT face=Verdana
color=#0000ff>Calle 93B No 12-48 Of 302</FONT></SPAN><BR><SPAN
class=estilo21></SPAN></SPAN></FONT><FONT face=Verdana color=#0000ff
size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Verdana"><SPAN
class=estilo21><FONT face=Verdana color=#0000ff>Bogota D.C.,
Colombia</FONT></SPAN><BR><SPAN class=estilo21></SPAN></SPAN></FONT><FONT
face=Verdana color=#0000ff size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Verdana"><SPAN
class=estilo21><FONT face=Verdana color=#0000ff>Tel: (57) (1) 610 6834
ext. 107</FONT></SPAN><BR></SPAN></FONT><FONT face=Verdana color=#0000ff
size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Verdana"><SPAN
class=estilo21><FONT face=Verdana color=#0000ff>Fax: (57) (1) 610 6834
ext. 108</FONT></SPAN><BR></SPAN></FONT><FONT face=Verdana color=#0000ff
size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Verdana"><SPAN
class=estilo21><FONT face=Verdana color=#0000ff>Cel: (57) 300
5528542</FONT></SPAN><BR></SPAN></FONT><FONT face=Verdana color=#0000ff
size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Verdana"><SPAN
class=estilo21><FONT face=Verdana color=#0000ff><A
class=moz-txt-link-abbreviated
href="mailto:asayago@ebstudio.com">asayago@ebstudio.com</A></FONT></SPAN><BR><SPAN
class=estilo21></SPAN></SPAN></FONT><BR><FONT face=Verdana color=#999999
size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Verdana"><SPAN
class=estilo21><FONT face=Verdana color=#999999>Barcelona,
España</FONT></SPAN><BR><SPAN class=estilo21><FONT face=Verdana
color=#999999>Paseo de Gracia 2-4, 3,6a</FONT></SPAN><BR><SPAN
class=estilo21><FONT face=Verdana color=#999999>PBX. (34) 911 830
105</FONT></SPAN></SPAN></FONT><BR><A href="http://www.ebstudio.com"><SPAN
class=estilo51><FONT face=Verdana size=1><SPAN
style="FONT-SIZE: 9pt">www.ebstudio.com</SPAN></FONT></SPAN><BR></A><SPAN
class=estilo21><FONT face=Verdana color=#999999 size=1><SPAN
style="FONT-SIZE: 7.5pt">"Su Aliado en <ST1:PERSONNAME w:st="on"
productid="la Red">la
Red</ST1:PERSONNAME>"</SPAN></FONT></SPAN><O:P></O:P></P></TD></TR>
<TR>
<TD
style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><STRONG><B><FONT
face=Verdana color=black size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Verdana">AVISO DE
CONFIDENCIALIDAD</SPAN></FONT></B></STRONG><B><FONT face=Verdana
color=black size=1><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Verdana"><BR></SPAN></FONT></B><SPAN
class=estilo41><FONT face=Verdana color=black size=1><SPAN
style="FONT-SIZE: 7.5pt">ESTE MENSAJE, (INCLUYENDO CUALQUIER ANEXO) ESTÁ
DIRIGIDO ÚNICAMENTE A LOS DESTINATARIOS ARRIBA SEÑALADOS. PUEDE CONTENER
INFORMACIÓN CONFIDENCIAL O PRIVILEGIADA Y NO DEBE SER LEÍDO, COPIADO O DE
OTRA FORMA UTILIZADO POR CUALQUIER OTRA PERSONA. SI USTED RECIBE ESTA
COMUNICACIÓN POR ERROR, FAVOR AVISAR AL REMITENTE Y ELIMINAR EL MENSAJE DE
SU SISTEMA.</SPAN></FONT></SPAN><FONT face=Verdana color=black
size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Verdana"><BR><BR></SPAN></FONT><SPAN
class=estilo41><FONT face=Verdana color=black size=1><SPAN lang=EN-GB
style="FONT-SIZE: 7.5pt">THIS E-MAIL (INCLUDING ANY ATTACHMENTS) IS
INTENDED ONLY FOR THE RECIPIENT(S) NAMED ABOVE. IT MAY CONTAIN
CONFIDENTIAL OR PRIVILEGED INFORMATION AND SHOULD NOT BE READ, COPIED OR
OTHERWISE USED BY ANY OTHER PERSON. IF YOU ARE NOT A NAMED RECIPIENT,
PLEASE CONTACT THE SENDER AND DELETE THE E-MAIL FROM YOUR
SYSTEM.</SPAN></FONT></SPAN><SPAN
lang=EN-GB><O:P></O:P></SPAN></P></DIV></TD></TR></TBODY></TABLE></DIV></BODY></HTML>