Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-05-08 15:31:00

Naatan
New member
Registered: 2007-03-27
Posts: 8

Custom css style: Classes

Hi, I've added a custom style to the editor, so that when you start editing a new page, the editor content will take the style from the css.

Im using the following command to accomplish this:

xinha_config.pageStyle = "@import url(wysiwyg.css);";

Now using this for example, works fine;

body {
  background-color: red;
}

but when I for example add a class;

.myclass {
  font-weight: bold;
}

and then when editing a page add a div into the page with that class

<div class="myclass">test</div>

it does not work, the text shows up regular even though I assigned it to be bold in the css.

Now there is nothing wrong with the css, I know this because it works without xinha.

Does anyone know how I can make this work?

Offline

Board footer

Powered by FluxBB