EditWrx Knowledge Base Home
 Search       Login   Register   Members   Help   Home 
Search by username

EditWrx Knowledge Base > Open End User Forum > Block Editing > Editblock: how to set default font

Editblock: how to set default font
 Moderated by: Keith  
 New Topic   Reply   Print 
AuthorPost
allinfo
Member
 

Joined: Sun Jan 8th, 2006
Location: Lochem, Netherlands
Posts: 5
 Posted: Sun Jan 8th, 2006 01:53 pm
 Quote  Reply 
I try to set the default font setting through a stylesheet. But it does not work.

code:

--- in the head

  <link rel="stylesheet" href="http://www.akribie-productions.com/akribie.css" type="text/css">


----- in the body

<div class=tekst editblock="1"><P>text</P></div>

-- in the stylesheet

.tekst {
 font-family : arial;
 font-size : 10pt;
}


For a second I see the arial 10, but then it changes to a font that looks like courier

 

What am I doing wrong here?

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 578
 Posted: Sun Jan 8th, 2006 02:53 pm
 Quote  Reply 
You can not add a class to the DIV or SPAN tag containing an editblock, includeblock or excluceblock attribute. The editor adds a class to those tags to produce the outlines. For example

<div editblock="1">

gets a class that turns the tag into

<div class=xeditblock editblock="1">

That xeditblock class overwrites the class tekst that you had in the tag. Change to

<div editblock="1"><span class=tekst><P>text</P></span></div>

 

_Steve_
Member
 

Joined: Wed Nov 16th, 2005
Location:  
Posts: 13
 Posted: Tue Jan 10th, 2006 12:15 am
 Quote  Reply 
I have found that the following works as well, let me know if there is a reason that this is not a good way:

<div class=tekst>
<span editblock="1"><P>text</P></span><!-- editblock="1" -->
</div>

The reason I did it this way is because if for some reason you delete the span tag (within editwrx) that is after the editblock it is gone forever. But now if you change it to something else it will change it but also keeps the default class available for later.

Make sense?

Last edited on Tue Jan 10th, 2006 01:11 am by _Steve_

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 578
 Posted: Tue Jan 10th, 2006 01:17 pm
 Quote  Reply 
Your reasoning and syntax is better than mine :-)


 Current time is 04:51 pm




Powered by WowBB 1.62 - Copyright © 2003-2004 Aycan Gulez