FAQ: Howto use styles with spaw

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

FAQ: Howto use styles with spaw

Post by frold »

Open:

Code: Select all

 include\inc_ext\spaw\config\spaw_control.config.php
Find:

Code: Select all

// default dropdown content
$spaw_dropdown_data['style']['default'] = 'Normal';
Add after:

Code: Select all

$spaw_dropdown_data['style']['style1'] = 'Style no 1';
$spaw_dropdown_data['style']['style2'] = 'Style no 2';
To modify these 2 styles

Open:

Code: Select all

include\inc_ext\spaw\wysiwug.css
And modify:

Code: Select all

.style1 {
	color: green;
	font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight : bolder;
	font-size: 10pt;
}
.style2 {
	color: red;
  background-color: #dddddd;
	font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight : bolder;
	font-size: 12pt;
}


Well now you see the point, so it easy to add more styles...

To use the style, just mark the text and choose the style from the drop down...

If it not work plz take a look on this post http://www.phpwcms.de/forum/viewtopic.php?p=11659#11659
http://www.studmed.dk Portal for doctors and medical students in Denmark
Post Reply