ID #1034

Wie kann ich Styles in Spaw erstellen

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

Code:

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

Add after:
Code:
$spaw_dropdown_data['style']['style1'] = 'Style no 1'; 
$spaw_dropdown_data['style']['style2'] = 'Style no 2';

To modify these 2 styles

Open:
Code:
include\inc_ext\spaw\wysiwug.css

And modify:
Code:
.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...


Original: http://www.phpwcms.de/forum/viewtopic.php?t=1890 (Englisch)

Tags: -

Verwandte Artikel:

Letzte Änderung des Artikels: 2006-03-29 15:38
Autor: kosse
Revision: 1.4

Sprache ändern
 

Digg it! Share on Facebook Artikel ausdrucken Artikel weiterempfehlen Als PDF-Datei anzeigen
Übersetzungsvorschlag für Übersetzungsvorschlag für
Bewertung der Nützlichkeit dieses Artikels:

Durchschnittliche Bewertung: 0 (0 Abstimmungen)

vollkommen überflüssig 1 2 3 4 5 sehr wertvoll

Es ist möglich, diesen Artikel zu kommentieren.

Kommentar von Anka:
Kann man hier noch erklären, was Spaw eigentlich ist und wie es sich z.B. vom FCK Editor unterscheidet?
Added at: 2008-02-22 14:11