[opencms-dev] WYSIWYG Editor and CSS in RC2

Alexander Kandzior alex at opencms.org
Fri Feb 14 09:30:17 CET 2003


Paul,

try to put your <stylesheet> in the mastertemplate, like this:

<?xml version="1.0" encoding="utf-8"?>

<xmltemplate>
<stylesheet>/system/modules/modname/resources/smh.css</</stylesheet>
<template>
<element name="..."/>
</template>

<elementdef name="...">
    <class>...</class>
    <template>..</template>
</elementdef>
</xmltemplate>

Make sure your path information is correct AND the style sheet is
already published.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

-----Original Message-----
From: Paul Adams [mailto:owner-opencms-dev at www.opencms.org] On Behalf Of
Paul Adams
Sent: Thursday, February 13, 2003 11:10 PM
To: opencms-dev at www.opencms.org
Subject: RE: [opencms-dev] WYSIWYG Editor and CSS in RC2


Alexander,

Thanks for the pointer, however that does not work either. My
Frametemplate now reads:

<XMLTEMPLATE>
<stylesheet>/system/modules/modname/resources/smh.css</stylesheet>

I have edited the page source HTML to remove spurious markup imported
from Word via a copy and paste (It has a nasty habbit on inserting it's
own style attributes!). The only elements I am using are <P> and <H1>. 

My CSS is set to Black Verdana for the paragraphs and Orange Verdana for
H1 to H6. The WYSIWYG view is showing the text in default (Black Times
New Roman), but when I preview the page the CSS is being picked up
correctly.

Any ideas??

Thanks in advance,
Paul Adams
-----Original Message----- 
From: Alexander Kandzior [mailto:alex at opencms.org] 
Sent: Thu 13/02/2003 19:28 
To: opencms-dev at www.opencms.org 
Cc: 
Subject: RE: [opencms-dev] WYSIWYG Editor and CSS in RC2


Paul,

in the <stylesheet> tag the path to the CSS must start with a "/".

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

> -----Original Message-----
> From: owner-opencms-dev at www.opencms.org
> [mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Paul Adams
> Sent: Wednesday, February 12, 2003 10:43 PM
> To: opencms-dev at opencms.com
> Subject: [opencms-dev] WYSIWYG Editor and CSS in RC2
>
>
> CSS is not being picked up by the WYSIWYG editor since using
> the R5 drops. I have the following lines in my frametemplate:
> 
> <XMLTEMPLATE>
> <stylesheet>system/modules/modname/resources/text.css</stylesheet>
> .
> .
> .
> <LINK rel="stylesheet" type="text/css" href="]]><method
> name="getServletPath"/><![CDATA[system/modules/modname/resourc
> es/text.css">
> 
> The CSS is being picked up by the <LINK> element but the
> <stylesheet> element does not appear to work.
> 
> I am running the following environment:
> OpenCMS 5.0 RC2
> Tomcat 4.1.18
> Java SDK 1.4.1
> MySQL 3.23.54
> Windows XP
> IE 6.0
> 
> Regards
> Paul Adams
>





More information about the opencms-dev mailing list