Forum closed. New forum available at http://community.wymeditor.org/

Headline elements

Support forum for WYMeditor.

Headline elements

Postby Hatachy on Mon Nov 03, 2008 2:51 pm

Hi,

i tried to add a class for headline elements:

Code: Select all
/* H1-6: Cleared */
.cleared h1,
.cleared h2,
.cleared h3,
.cleared h4,
.cleared h5,
.cleared h6 {
  clear: both;
  /* clear: both; border-top: 1px solid #666666; */
}


It works with ".cleared p", but styling headline tags (h1-h6) doesn't work. Is there any possibily to style headline tags?
Hatachy
 
Posts: 2
Joined: Mon Nov 03, 2008 2:45 pm

Re: Headline elements

Postby mr_lundis on Mon Nov 03, 2008 7:25 pm

Hello Hatachy and welcome to the WYMeditor forum!

Have you tried to write a rule that only applies to one of the different headlines? I don't know how the css parser handles multiple selectors, as I've never worked on it.

You could also try to manipulate the editorStyles variable directly, see the trac wiki for more information:
http://trac.wymeditor.org/trac/wiki/0.5 ... itorStyles

Cheers!
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden

Re: Headline elements

Postby Hatachy on Tue Nov 04, 2008 9:59 pm

Thanks ;)

Yes I tried to write a single tag css rules. Same result.

"Manipulating the editor style"?
I want to add a css class to a headline. Manipulating the editor style will only change the visual representation in editing mode - and: always.

That wont solve the problem, when I'm right. Another idea?
Hatachy
 
Posts: 2
Joined: Mon Nov 03, 2008 2:45 pm

Re: Headline elements

Postby mr_lundis on Wed Nov 05, 2008 10:01 am

Hi again!

The editorStyles is a variable that holds all the classes you can apply to your content, please take a look at the wiki link i provided for more information.

Cheers!
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest