[opencms-dev] WYSIWYG editor: missing element after saving

Stephan Hartmann hartmann at waehrisch-feykes.de
Fri May 3 08:21:18 CEST 2002


Hi Manfred,

you may not do this cause OpenCms and the WYSIWYG editor expect pure html in 
text bodies. Move your element to a frame or content template used by your 
page.

Bye,

Stephan


Am Donnerstag,  2. Mai 2002 23:26 schrieben Sie:
> Hi all,
>
> I have placed an element ("contact") in a body template (code below). It
> works fine. I get the expected results. But after saving in the WYSIWYG
> editor, the element-tag was removed.
>
>
> ------------- Code before saving in WYSIWYG editor -----------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <XMLTEMPLATE>
>     <TEMPLATE><![CDATA[<h1>Contact Information</h1>
>       <p> </p>
>       ]]><ELEMENT name="contact"/></TEMPLATE>
>     <edittemplate><![CDATA[<H1>Contact Information</H1>
> <P> </P>]]><ELEMENT name="contact"/>
>     </edittemplate>
>     <ELEMENTDEF name="contact">
>         <CLASS>com.opencms.modules.homepage.news.NewsTemplate</CLASS>
>         <TEMPLATE>/content/elements/cfc_contact</TEMPLATE>
>         <PARAMETER name="channelname">contact</PARAMETER>
>     </ELEMENTDEF>
> </XMLTEMPLATE>
>
>
>
> ------------- Code after saving in WYSIWYG editor -----------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <XMLTEMPLATE>
>     <TEMPLATE><![CDATA[<h1>Contact Information</h1>
> <p> </p>
> ]]>]]></TEMPLATE>
>   ^^^^  ^^
> this was changed: line with <ELEMENT... was removed.
> What's wrong?
>
> best regards,
> Manfred Pruntsch

-- 
Stephan Hartmann

Währisch & Feykes GmbH
Gustav-Adolf-Str. 5
47057 Duisburg
Tel. 0203 / 373 070
Fax 0203 / 376 766
hartmann at wfnetz.de

------------------------------------------------------
Ausschlusserklärung (Disclaimer):
Über das Internet versandte E-mails können unter fremden Namen erstellt oder 
manipuliert werden. Aus diesem Grund enthalten unsere mit E-mail verschickten 
Nachrichten grundsätzlich keine rechtsverbindlichen Willenserklärungen.



More information about the opencms-dev mailing list