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
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
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
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!
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,
if you already use a css file I recommend specifying a new style item like
body { margin-left: 40px; ...}Regards,Hans-Peter