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

Manfred Pruntsch manfred.pruntsch at ifcos.com
Thu May 2 23:26:41 CEST 2002


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





More information about the opencms-dev mailing list