[opencms-dev] Stylesheet !!! URGENT !
Rene Hinojosa
R_Hinojosa at Cityofsouthfield.com
Fri Jun 20 21:25:02 CEST 2003
OK, I've noticed the bug your talking about with the browser not going into then html and going back to the WYSIWYG editor. I've figured out if it only occurs when you make changes in the WYSIWYG and then try to switch to the HTML. Try saving your work first then switch to the HTML.
Now for the changing stylesheets in your editor. If you define your stylesheet in your XMLTemplate, it will appear in your editor. You have to point to the stylesheet you want otherwise it defaults.
example XMLTemplate(excerpt):
<?xml version="1.0" encoding="ISO-8859-1"?>
...
<stylesheet>/pathtoyourstylesheet/edit.css</stylesheet>
<template>
<element name="jsptemplate"/>
</template>
...
</xmltemplate>
Now all you have to do is import your other stylesheet into you jsptemplate like so:
<%@ page session="false" import="com.opencms.flex.jsp.*"%>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<!doctype html public "-//W3C//DTD HTML 4.01 Translational//EN">
<html>
<head>
...
<style type="text/css" media="all">
<cms:include>../resources/screen.css</cms:include>
</style>
<style type="text/css" media="print">
<cms:include>../resources/print.css</cms:include>
</style>
</head>
<body>
...
</html>
Notice that I've used three different stylesheets. One for the editors to use, One for viewing on the screen, and the other one for printing the web page. I've also noticed that you have to do an include and not use a relative css otherwise IE plays dumb and ignores the stylesheet.
Rene
>>> scrivimi at robertoghizzioli.it 06/20/03 12:43PM >>>
ok...
in attachment there is a screenshot about my Wysiwyg editor. How you can
see there's no possibility to choose a text style to link to the
content.
Why ?
Is my IE corrupt ???
PS: the screenshot example is the documentation project !!! so the css
are just defined !!!
thanks,
R
On Fri, 2003-06-20 at 19:26, Rene Hinojosa wrote:
> Greetings,
>
> Define the stylesheet you want to use in the xmltemplate and define the stylesheet you want to use on your site in the jsptemplate.
>
> Rene
>
> >>> scrivimi at robertoghizzioli.it 06/20/03 11:24AM >>>
> Hi all,
>
> I'm using opencms release 5 and I would like to use css in IE Wysiwyg
> editor. I don't remember but is possible to choose a different style
> while I insert content ?? Otherwise, how can join a particular style to
> a text in IE Wysiwyg editor ???
>
> Now, with my IE editor I can see the css applyed to text/link.. but I
> can't change it. Another strange thing is that when I choose the ASCII
> editor IE don't switch an use always the wysiwyg editor...
>
> Why ??
> I have just reinstalled opencms but noything happend !!! :-(
>
> thanks,
> Roberto
>
> _______________________________________________
> 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
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
> _______________________________________________
> 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
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list