<!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.2668" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Hi
Marius,</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>I downloaded the htmlArea
from the link you gave me and found the relevant example but I was unable
to tranfer this to the htmlArea Opencms. </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>I tried
adjusting <SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">/system/workplace/resources/components/widgets/htmlarea.js</SPAN><FONT
face="Times New Roman" size=3> by adding </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial
size=2>HTMLArea.loadPlugin("CSS");
(I don't really understand what this does, does this initialise CSS
variable used later?)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Then code similar to that you gave and in example
but I get a Javascript error. Please see attached script file
below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any ideas where I'm going wrong? Do I need to
add any new files to the CMS?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>best
wishes</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3>James</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial
size=2>--------------</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>/*<BR> *
File : $Source: $<BR> * Date : $Date: $<BR> *
Version: $Revision: $<BR> *<BR> * This library is part of OpenCms
-<BR> * the Open Source Content Mananagement System<BR> *<BR> *
Copyright (C) 2002 - 2005 Alkacon Software (<A
href="http://www.alkacon.com">http://www.alkacon.com</A>)<BR> *<BR> *
This library is free software; you can redistribute it and/or<BR> * modify
it under the terms of the GNU Lesser General Public<BR> * License as
published by the Free Software Foundation; either<BR> * version 2.1 of the
License, or (at your option) any later version.<BR> *<BR> * This
library is distributed in the hope that it will be useful,<BR> * but
WITHOUT ANY WARRANTY; without even the implied warranty of<BR> *
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<BR> *
Lesser General Public License for more details.<BR> *<BR> * For
further information about Alkacon Software, please see the<BR> * company
website: <A
href="http://www.alkacon.com">http://www.alkacon.com</A><BR> *<BR> *
For further information about OpenCms, please see the<BR> * project
website: <A href="http://www.opencms.org">http://www.opencms.org</A><BR> *
<BR> * You should have received a copy of the GNU Lesser General
Public<BR> * License along with this library; if not, write to the Free
Software<BR> * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA<BR> */<BR> <BR>/*<BR> * These
scripts are required for the html areas in the xml content
editor<BR> */<BR> <BR>// HTMLArea configuration<BR>var config;<BR>var
htmlAreas = new Array();<BR>var textAreas = new Array();</FONT></FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2><FONT face=Arial size=2>
<DIV><BR>HTMLArea.loadPlugin("CSS");
////////////////**************ADDED BY ME</DIV>
<DIV> </DIV>
<DIV>function initHtmlAreas() {</DIV>
<DIV> </DIV>
<DIV> config = new HTMLArea.Config();<BR> config.toolbar =
[<BR> [<BR> "copy", "cut", "paste",
"separator",<BR> "bold", "italic", "underline",
"separator",<BR> "strikethrough", "subscript", "superscript",
"separator",<BR> "insertorderedlist", "insertunorderedlist",
"outdent", "indent",
"separator",<BR> "htmlmode"<BR> ]<BR> ];</DIV>
<DIV> </DIV>
<DIV> config.pageStyle = <BR> 'body { font-family:verdana,
sans-serif; font-size:11px; font-weight:normal; margin: 0 0 0 0; padding: 1 1 1
1; border-width:2px; border-color:#FFF; border-style:inset; } ';</DIV>
<DIV> </DIV>
<DIV> // disable the status bar<BR> config.statusBar = false;</DIV>
<DIV> </DIV>
<DIV> // kill MS Word formatting on paste<BR> config.killWordOnPaste =
true;<BR> <BR> // set autofocus to false to avoid jumping to last
htmlarea<BR> config.autoFocus = false;</DIV>
<DIV> </DIV>
<DIV> var tas = document.getElementsByTagName("textarea");<BR> for
(var i=0; i<tas.length; i++) {<BR> var idAttr =
tas[i].getAttribute("id");<BR> if (idAttr != null && idAttr
!= "") {<BR> // only use textareas with "id" attribute value
set<BR> textAreas[textAreas.length] =
tas[i];<BR> var ha = new HTMLArea(tas[i],
config);<BR> <BR>/////////////////***************** ADDED BY
ME<BR>ha.config.pageStyle = "@import
url(custom.css);";<BR>
ha.registerPlugin(CSS,
{<BR> combos :
[<BR> { label:
"style",<BR>
options: { "style1"
:
"",<BR>
"style2" :
"quote",<BR>
"style3" :
"highlight",<BR>
"style4" :
"deprecated"<BR>
}<BR>
}<BR>
]<BR>
});<BR>
<BR>/////////////***************** ADDED BY ME</DIV>
<DIV> </DIV>
<DIV> htmlAreas[htmlAreas.length] =
ha;<BR> ha.generate();<BR> }<BR> }<BR>}</DIV>
<DIV> </DIV>
<DIV>function registerHtmlArea(id) {<BR>}</DIV>
<DIV> </DIV>
<DIV>function submitHtmlArea(form) {<BR> for (var i=0;
i<textAreas.length; i++) {<BR> ta =
textAreas[i];<BR> ha = htmlAreas[i];<BR> ta.value =
encodeURIComponent(ha.getHTML());<BR> }<BR>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT> </DIV>
<DIV><BR></DIV></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mar1u50@yahoo.ca href="mailto:mar1u50@yahoo.ca">Marius Oancea</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=james@gamepub.com
href="mailto:james@gamepub.com">James Adams</A> ; <A
title=opencms-dev@opencms.org href="mailto:opencms-dev@opencms.org">The
OpenCms mailing list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 27, 2005 5:08 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [opencms-dev] xsd
OpenCmsHtml editor</DIV>
<DIV><BR></DIV>HTML Area has a CSS plugin that can be loaded and used <FONT
face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">/system/workplace/resources/components/widgets/htmlarea.js</SPAN></FONT>.<BR><BR>You
can use something like that :<BR><BR>editor.registerPlugin(CSS,
{<BR> combos :
[<BR> {
label:
"Info",<BR>
options: { "None"
:
"",<BR>
"Atomic" :
"atomic"<BR>
}<BR>
}<BR>
]<BR> });<BR><BR><BR>And in toolbar
you can Add "CSS-class0" anywhere.<BR><BR>Download htmlArea (<A
class=moz-txt-link-freetext
href="http://www.dynarch.com/projects/htmlarea/">http://www.dynarch.com/projects/htmlarea/</A>)
and look at the examples. There is one (dynamic_css.html) with exactly what
you want.<BR><BR>You will have to define the list of css classes to be used by
your editors.<BR><BR>You can even disallow bold, italic, font, size, .... if
you define the right set of css classes.<BR><BR>
Marius<BR><BR>James Adams wrote:
<BLOCKQUOTE cite=mid00e301c57b1e$6c6fd1b0$60b81952@acerpezl9xgwu7
type="cite"><META content="MSHTML 6.00.2900.2668" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><O:SMARTTAGTYPE
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"></O:SMARTTAGTYPE><!--[if !mso]>
<STYLE>
st1\:*{behavior:url(#default#ieooui) }
</STYLE>
<![endif]-->
<STYLE>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EstiloDeEmail18
{mso-style-type:personal;
font-family:Arial;
color:navy;}
span.EstiloDeEmail19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks again Bruno.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Does anyone know why that is?
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Is there something that makes
it particularly hard to implement in HTML/JScript etc? I can't
see why that is.</FONT></DIV>
<DIV><FONT face=Arial size=2>Styles/CSS are a pretty common thing these days
espeically in larger websites, which are exactly the kind that benefit
from a CMS. </FONT><FONT face=Arial size=2>Not being able to select
the style for html elements in the WYSIWYG editor severly effects
the useabilty of OpenCMS from my point of view. It means its quicker
to get the code cut & paste to/from dreamweaver. Which essentially
makes the WYSIWYG editor redundant.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Am I alone in thinking this? what do
other people that use CSS do? </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>James</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; moz-background-clip: initial; moz-background-origin: initial; moz-background-inline-policy: initial"><B>From:</B>
<A title=bruno.braga@globalvalue.com.br
href="mailto:bruno.braga@globalvalue.com.br">BRAGA Bruno Gonçalves</A>
</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B>
<A title=james@gamepub.com href="mailto:james@gamepub.com">James Adams</A>
; <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">The OpenCms mailing list</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Monday, June 27, 2005 1:48 PM</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B>
RES: [opencms-dev] xsd OpenCmsHtml editor </DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt">You can create templates with the HTML Gallery,
and leave recorded several templates in HTML with
css.<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt">But directly for the WYSIWYG I do not know if it
is possible. One only was in the hand, right-hander in code HTML does not
have wizard for css.</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN
lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">De:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
<ST1:PERSONNAME w:st="on">James Adams</ST1:PERSONNAME> [<A
class=moz-txt-link-freetext
href="mailto:james@gamepub.com">mailto:james@gamepub.com</A>] <BR><B><SPAN
style="FONT-WEIGHT: bold">Enviada em:</SPAN></B> segunda-feira, 27 de
junho de 2005 09:24<BR><B><SPAN style="FONT-WEIGHT: bold">Para:</SPAN></B>
<ST1:PERSONNAME w:st="on">The OpenCms mailing
list</ST1:PERSONNAME><BR><B><SPAN
style="FONT-WEIGHT: bold">Assunto:</SPAN></B> Re: [opencms-dev] xsd
OpenCmsHtml editor </SPAN></FONT><O:P></O:P></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks Bruno for pointing me
in the right direction.</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Do you know though if there is
an option to apply styles to html elements ? I had a look but
couldn't immediately find anything.</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The WYSIWYG editor is fairly
useless to me without this option.</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">regards</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">James</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<BLOCKQUOTE
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; MARGIN: 5pt 0cm 5pt 3.75pt; BORDER-LEFT: 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----- Original Message -----
<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal
style="BACKGROUND: rgb(228,228,228) 0% 50%; moz-background-clip: initial; moz-background-origin: initial; moz-background-inline-policy: initial"><B><FONT
face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">From:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <A
title=bruno.braga@globalvalue.com.br
href="mailto:bruno.braga@globalvalue.com.br">BRAGA Bruno Gonçalves</A>
<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">To:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <A
title=james@gamepub.com href="mailto:james@gamepub.com">James Adams</A>
; <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">The OpenCms mailing list</A>
<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Sent:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
Wednesday, June 22, 2005 2:15 PM<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Subject:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
RES: [opencms-dev] xsd OpenCmsHtml editor
<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I believe that
this is not customize because he is fixed in the code (js).
</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">But you can
edit it:<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">/system/workplace/resources/components/widgets/htmlarea.js<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt"><FONT face=Arial
color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">config.toolbar
= [<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
[<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
"copy", "cut", "paste", "separator",<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
"bold", "italic", "underline", "separator",<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
"strikethrough", "subscript", "superscript",
"separator",<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
"insertorderedlist", "insertunorderedlist", "outdent", "indent",
"separator",<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">"htmlmode"<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
]<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
];<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">These words
between quotations marks are them to toolbar itens that they go to
appear in the html editor.<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
You can register new to be used. Look config.registerButton()
function.<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
It sees the code of the full html editor, to understand
better.
<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Bruno
Braga<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">De:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
<ST1:PERSONNAME w:st="on">James Adams</ST1:PERSONNAME> [<A
class=moz-txt-link-freetext
href="mailto:james@gamepub.com">mailto:james@gamepub.com</A>]
<BR><B><SPAN style="FONT-WEIGHT: bold">Enviada em:</SPAN></B>
quarta-feira, 22 de junho de 2005 08:11<BR><B><SPAN
style="FONT-WEIGHT: bold">Para:</SPAN></B> <ST1:PERSONNAME w:st="on">The
OpenCms mailing list</ST1:PERSONNAME><BR><B><SPAN
style="FONT-WEIGHT: bold">Assunto:</SPAN></B> Re: [opencms-dev] xsd
OpenCmsHtml editor </SPAN></FONT><O:P></O:P></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is it really not possible to
have the full HTML editor options available when editing an element of
type OpenCmsHtml in a XMLContent
object?</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">thanks in
advance</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">James</SPAN></FONT><O:P></O:P></P></DIV>
<BLOCKQUOTE
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; MARGIN: 5pt 0cm 5pt 3.75pt; BORDER-LEFT: 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----- Original Message
----- <O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal
style="BACKGROUND: rgb(228,228,228) 0% 50%; moz-background-clip: initial; moz-background-origin: initial; moz-background-inline-policy: initial"><B><FONT
face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">From:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<A title=james@gamepub.com href="mailto:james@gamepub.com">James
Adams</A> <O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">To:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</A>
<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Sent:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
Wednesday, June 22, 2005 7:42 AM<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Subject:</SPAN></FONT></B><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
[opencms-dev] xsd OpenCmsHtml editor
<O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have an
XMLContent type with a number of
elements</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In the .xsd file the
element MainText is of type OpenCmsHtml. When adding elements
there is a rich text editor for this element but it does not have the
options for adding images and links as with the full html
editor. Can I enable
this?</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">.xsd file
below</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">regards</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">James</SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><xsd:schema
xmlns:xsd="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
elementFormDefault="qualified"><BR> <BR> <xsd:include
schemaLocation="opencms://opencms-xmlcontent.xsd"/> <BR> <xsd:element
name="Developments"
type="OpenCmsDevelopments"/><BR> <BR> <xsd:complexType
name="OpenCmsDevelopments"><BR> <xsd:sequence><BR> <xsd:element
name="Development" type="OpenCmsDevelopment" minOccurs="0"
maxOccurs="unbounded"/><BR> </xsd:sequence><BR> </xsd:complexType></SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <xsd:complexType
name="OpenCmsDevelopment"><BR> <xsd:sequence><BR> <xsd:element
name="Headline" type="OpenCmsString"
/><BR>
<xsd:element name="MainText" type="OpenCmsHtml"
/><BR>
<xsd:element name="ImageUrl" type="OpenCmsString"
/><BR>
<xsd:element name="Links" type="OpenCmsString" minOccurs="0"
maxOccurs="5"/><BR>
<xsd:element name="Email" type="OpenCmsString"
/><BR> <xsd:element name="Reference"
type="OpenCmsString"
/> <BR> <xsd:element
name="Telephone" type="OpenCmsString"
/><BR>
<xsd:element name="LOOP" type="OpenCmsString"
/><BR>
<xsd:element name="Fax" type="OpenCmsString"
/><BR>
<xsd:element name="IsAlive" type="OpenCmsString"
/><BR> </xsd:sequence><BR> <xsd:attribute
name="language" type="OpenCmsLocale"
use="required"/><BR> </xsd:complexType><BR>
<xsd:annotation><BR> <xsd:appinfo><BR>
<defaults><BR> <default element="LOOP"
value="NULL|WAFRINET|SAFRINET|PACINET|NAFRINET|EuroLOOP|ASEANET|ANDINONET|CARINET|EAFRINET|EASINET|PACINET|LATINET|MESOAMERINET|NAMERILOOP|SACNET|bionet"/><BR>
<default element="IsAlive"
value="true|false"/><BR> </defaults><BR> <layouts><BR> <layout
element="LOOP" widget="SelectorWidget"
/><BR>
<layout element="IsAlive" widget="SelectorWidget"
/><BR> </layouts><BR> <resourcebundle
name="org.opencms.frontend.templateone.xmlcontentdemo.workplace"/><BR> <mappings><BR> <mapping
element="Headline" mapto="property:Title"
/><BR> </mappings><BR> </xsd:appinfo></SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </xsd:annotation><BR></xsd:schema></SPAN></FONT><O:P></O:P></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><BR><BR>_______________________________________________<BR>This
mail is send to you from the opencms-dev mailing list<BR>To change
your list options, or to unsubscribe from the list, please visit<BR><A
class=moz-txt-link-freetext
href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A>
<O:P></O:P></SPAN></FONT></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">No virus found in this incoming
message.<BR>Checked by AVG Anti-Virus.<BR>Version: 7.0.323 / Virus
Database: 267.7.9/23 - Release Date:
20/06/2005<O:P></O:P></SPAN></FONT></P></BLOCKQUOTE>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">No virus found in this incoming
message.<BR>Checked by AVG Anti-Virus.<BR>Version: 7.0.323 / Virus
Database: 267.7.10/25 - Release Date:
21/06/2005<O:P></O:P></SPAN></FONT></P></BLOCKQUOTE></DIV>
<P></P>
<HR>
No virus found in this incoming message.<BR>Checked by AVG
Anti-Virus.<BR>Version: 7.0.323 / Virus Database: 267.8.2/29 - Release
Date: 27/06/2005<BR></BLOCKQUOTE><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
This mail is send 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://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A></PRE></BLOCKQUOTE><BR>
<P>
<HR>
<P></P>No virus found in this incoming message.<BR>Checked by AVG
Anti-Virus.<BR>Version: 7.0.323 / Virus Database: 267.8.2/29 - Release Date:
27/06/2005<BR></BLOCKQUOTE></BODY></HTML>