Überschriften im WYSIWYG |
Willkommen, Gast ( Anmelden | Registrierung ) [ Hilfe | Mitglieder | Suche ]
Überschriften im WYSIWYG |
Thu. 20. March 2008, 09:14
Beitrag
#1
|
|
Advanced Member Gruppe: AdvancedMembers Beiträge: 680 Mitglied seit: 09.08.2006 Wohnort: nähe Mainz Mitglieds-Nr.: 182 |
Hallo
Ich möchte meinen Redakteuren erlauben, richtige Überschriften (<h1>, <h2>, etc.) zu erstellen, aber nicht, die verwendete Schriftart zu wählen. Beides ist derzeit im WYSIWYG2 unter dem Feature "Font" zusammengefasst. Deshalb habe ich ein neues Feature "Format" hinzugefügt, welches nur die Formatauswahl (Überschrift1 1, Überschrift 2) aktiviert, ohne die Schriftart-Auswahl anzuzeigen. Im Modul muss dazu in der Konfiguration nach QUELLTEXT $mip_form['3']['option_desc'][] = 'Alle Felder sichtbar'; $mip_form['3']['option_val'][] = 'true'; $mip_form['3']['option_desc'][] = 'Fonts'; $mip_form['3']['option_val'][] = 'font'; $mip_form['3']['option_desc'][] = 'Fontgröße'; $mip_form['3']['option_val'][] = 'fontsize'; QUELLTEXT $mip_form['3']['option_desc'][] = 'Format'; $mip_form['3']['option_val'][] = 'fontformat'; eingefügt werden. In der Datei /projekt01/cms/fckeditor/editor/sefrengo/fnc.fck.php muss nach QUELLTEXT // 3. Zeile if (in_array('styles', $features) && !empty($selectablestyles)) $sub[] .= "'Style'"; if (in_array('font', $features)) $sub[] .= "'FontFormat','FontName'"; die Zeile QUELLTEXT else if (in_array('fontformat', $features)) $sub[] .= "'FontFormat'"; eingefügt werden. Beide Dateien habe ich auf basis der aktuellen Version 01.04.00 modifiziert und angehängt. Gruß, Peter
Angehängte Datei(en)
|
|
|
Tue. 16. June 2009, 03:36
Beitrag
#2
|
|
Newbie Gruppe: Members Beiträge: 2 Mitglied seit: 15.06.2009 Wohnort: Canada Mitglieds-Nr.: 1.909 |
If you create a new WYSIWYG div, does this still happen, or just on an exhisting one? Maybe you have a background style in the content of the editor.
If not, you should be able to view the source to see if something strange is going on. Search for #000 or #000000 to see if the black is coming from styles somewhere. |
|
|
Vereinfachte Darstellung | Aktuelles Datum: 28.4.24 - 18:03 |