Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit WP

Started by Jasper at 10-13-2006 9:41 . Topic has 5 replies.

Print Search
Sort Posts:    
   10-13-2006, 9:41
Jasper is not online. Last active: 22.09.2006 10:49:03 Jasper

Not Ranked
Joined on 09-22-2006
Posts 0
Stylesheet problem
Reply Quote

Hello,

I'm trying to define a standard stylesheet to the editor, so that all files created by the editor have the same look. Im using  the setStylesheetUrl() method to define a stylesheet. Problem is that i am also using the setToolbar() method.

When im using both setToolbar() and setStylesheetUrl(), the styles as defined in my stylesheet dont appear in the style selection box. When im only using the setStylesheetUrl() method, without the setToolbar() method, i do get to see my own styles.

Is there any way to make both setToolbar and setStylesheetUrl work?

Jasper Visser


   Report 
   10-13-2006, 10:13
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: Stylesheet problem
Reply Quote

Hi Jasper,

setToolbar should not have any influence on setStyleSheet.
We tried and it worked.

Which technology do you use (PHP etc) and which pinEdit version ?

Regards,
Hans-Peter

 

 


   Report 
   10-13-2006, 10:23
Jasper is not online. Last active: 22.09.2006 10:49:03 Jasper

Not Ranked
Joined on 09-22-2006
Posts 0
Re: Stylesheet problem
Reply Quote

Hans-Peter,

Im using a registered version of version 5.2.0920. Im using php to build the editor. Some more information:

this is the code for the setToolbar
$editor->setToolbar('T03SE562021222324SE272829SE31323334SE35SE0607086177SE0910SE12');
and this is the code for the setStyleSheet
$editor->setStyleSheetUrl($url.'pinEdit/editor/fmstyle.css')

in the stylesheet i have defined the following things:
.kop1{
 color:#003366;
 font-size:18px;
}
.subkop{
 color:#003366;
 font-size:14px;
}
.subsub{
 color:#003366;
 font-size:11px;
 font-style:italic;
}
.tekst{
 color:#333333;
 font-size:11px;
 font-style:italic;
}

Hope you can help!

Jasper


   Report 
   10-13-2006, 10:27
Jasper is not online. Last active: 22.09.2006 10:49:03 Jasper

Not Ranked
Joined on 09-22-2006
Posts 0
Re: Stylesheet problem
Reply Quote

Aargh! mayby i should use number 19 in stead of 56 in my toolbarcode..... now it works! i was taking the format dropdown for the style-drop down....Sorry!


   Report 
   10-13-2006, 10:37
Jasper is not online. Last active: 22.09.2006 10:49:03 Jasper

Not Ranked
Joined on 09-22-2006
Posts 0
Re: Stylesheet problem
Reply Quote

Hans-peter

I just have another question. How do i set the page margins of the editor? now the text is almost against the left border of the editor, but i would like to keep some distance (e.g 95px) from the left side, and also from the top and the right side

Is there any way to set this, or do you have to use css for this

Thank you,

Jasper Visser


   Report 
   10-13-2006, 11:27
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: Stylesheet problem
Reply Quote

Jasper,

if you already use a css file I recommend specifying a new style item like

body
{
  margin-left: 40px;
  ...
}

Regards,
Hans-Peter


   Report 
Pintexx Forum » Developer Produ... » pinEdit WP » Stylesheet problem