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';
$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';
$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'";
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