[opencms-dev] WYSIWYG Editor and CSS in RC2
Paul Adams
paul.adams at satsumas.com
Sun Feb 16 00:31:43 CET 2003
Alex,
That is exactly what I have in my frametemplate. I have also tried changing the case of the element name and also been direstly publishing the changes to the frametemplate as I go along.
Still no result -- Most mysterious!
Regards
Paul A.
-----Original Message-----
From: Alexander Kandzior [mailto:alex at opencms.org]
Sent: Fri 14/02/2003 19:30
To: opencms-dev at www.opencms.org
Cc:
Subject: RE: [opencms-dev] WYSIWYG Editor and CSS in RC2
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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 7318 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030215/7fbdf366/attachment.bin>
More information about the opencms-dev
mailing list