Schriftart und Farben

  • Hallo,

    wie kann ich es möglich machen die [FONT=Fixedsys]Schriftart[/FONT] und [COLOR=Red]Farben[/COLOR] u.s.w. wählen zu lassen, genauso wie ich es hier beim Thema erstellen machen kann.
    Standardmäßig kann ich nur Fett,kursiv u.s.w., also nur die untere Zeile

    Gruß und Danke
    addyy

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Wenn du einen neuen Artikel schreibst gibt es im Editor nen Button, auf dem steht 'HTML'. Da klickste drauf und fügst den HTML-Code dafür ein, sprich:

    HTML
    <span style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#FF0000;">Test</span>

    Die CSS-Eigenschaften kannst du selbstverständlich deinen Wünschen anpassen.

  • viel zu umständlich

    Hallo, soweit sogut, aber dies soll von Kindern benutzt werden, den kann ich kein HTML Code zumuten ?!
    Deswegen ja eben einfacher.

  • Guter Tipp, trotzdem Frage

    Hallo, danke für den Tipp, hab das mal beleuchtet, ist glaub ich das was ich will, aber wie kann ich denn von einfach auf erweitert bei tinymce umstellen?


    Danke für die Hilfe!

  • Hallo!

    Ok, dann legen wir einmal los. Die Dateien zu dem TinyMCE findest du in dem folgenden Ordner: wp-includes/js/tinymce.

    In dem Ordner öffnest du dir dann die Datei tiny_mce_gzip.php. In der Zeile 110 in etwa steht dann der Code, den du verändern musst, damit du dir deinen Editor anpassen kannst.

    Der Code schaut so aus:

    Code
    $mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'separator', 'fontsizeselect', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'link', 'unlink', 'image', 'wordpress', 'separator', 'undo', 'redo', 'code', 'wphelp'));
        $mce_buttons = implode($mce_buttons, ',');
        $mce_buttons_2 = apply_filters('mce_buttons_2', array());
        $mce_buttons_2 = implode($mce_buttons_2, ',');
        $mce_buttons_3 = apply_filters('mce_buttons_3', array());
        $mce_buttons_3 = implode($mce_buttons_3, ',');

    Um nun etwas wegzunehmen oder hinzuzugeben musst du die Bezeichnung für die Buttons im array eingeben. Nummer 2 und 3 eröffnen eine 2. und 3. Zeile mit Buttons über dem Schreibfeld.

    Hoffe, ich konnte dir weiterhelfen. Für nähere Beschreibung, welche Möglichkeite du von den Buttons her hast, schaue einfach auf http://tinymce.moxiecode.com/tinymce/docs/r…ce_buttons.html nach.

    Liebe Grüße,
    pati

  • so gehts

    Pati, du bist der größte !

    Danke

    (habs alles soweit hinbekommen, nur die Plugins im plugins-ordener krieg ich noch nicht rein)

  • tinyMCE Plugins

    Sorry Pati, konnt ich nicht wissen.
    Ich hab die Version 2.0.6.1. runtergeladen und dort gibt es noch mehr Funktionen als in meiner 2.0, die in WP drin ist.
    Leider hab ich es noch nicht hinbekommen die zusätzlichen mit einzubinden.
    Einfach in plugins-Ordner kopieren und in der tiny_mce_gzip.php bei
    $mce_buttons_2 = apply_filters('mce_buttons_2', array('cut', 'copy'......
    mit auflisten reicht nicht.
    Wo muß ich die plugins sozusagen anmelden, daß sie überhaupt da sind?

    Gruß Addyy

  • Wo kommt das nun wieder her?

    Läuft ja alles sehr schön mit tiny_mce, aber wenn ich mir den erzeugten html-code ansehe, flimmerts mir vor den Augen :


    Code
    die Du dann allerdings dann noch entpacken mußt.</font><font size="4" color="#3300ff"><font face="comic sans ms,sand">Zum download auf <strong>download</strong> klicken oder über das Kontextmenü (rechte Maustaste, speichern unter) gehen!</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></p>
    <p style="background-color: #ffff00"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" face="comic sans ms,sand"><strong><font color="#ff0033">Bildbearbeitung :</font><font size="4" color="#3300ff"><strong><font size="3" face="comic sans ms,sand" /></strong><font size="3" face="comic sans ms,sand" /><font size="3" face="comic sans ms,sand"><font size="3" face="comic sans ms,sand" /></font></font></strong><font size="4" color="#3300ff"><font size="3" face="comic sans ms,sand" /><font size="4" color="#3300ff" /><font size="3" face="comic sans ms,sand"><font size="4" color="#3300ff" /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></p>
    <p style="background-color: #ffff00"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" 0ff"><font size="4" color="#3300ff"><font size="4" face="comic sans ms,sand"><font size="4" color="#3300ff"><font size="3" face="comic sans ms,sand"><font size="4" face="comic sans ms,sand" /><font size="4" color="#3300ff" /><font size="3" face="comic sans ms,sand"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" face="comic sans ms,sand" /><font size="4" face="comic sans ms,sand"><strong><font size="4" color="#3300ff"><strong><font size="3" face="comic sans ms,sand">IfanView:</font></strong></font></strong></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></p>
    <p style="background-color: #ffff00"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" face="comic sans ms,sand"><font size="4" color="#3300ff"><font size="3" face="comic sans ms,sand"><font size="3" face="comic sans ms,sand"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" face="comic sans ms,sand" /><font size="4" color="#3300ff" /><font size="3" face="comic sans ms,sand"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" face="comic sans ms,sand" /><font size="4" face="comic sans ms,sand"><strong><font size="4" color="#3300ff"><strong><font size="3" face="comic sans ms,sand" /></strong><font size="3" face="comic sans ms,sand"><font size="3" face="comic sans ms,sand" /><font size="3" face="comic sans ms,sand"><strong><font face="comic sans ms,sand"><a title="IrfanView 3.98 deutsch exe" href="http://feddic.phone.hl-users.com/blog/wp-content/uploads/software/iview398g.exe">download</a> als selbsinstallierende .exe Datei</font></strong></font></font></font></strong><font size="4" color="#3300ff"><font size="3" face="comic sans ms,sand" /><font size="4" color="#3300ff"><font size="4" color="#3300ff" /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></p>
     <p><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" color="#3300ff"><font size="4" c color="#3300ff"><font size="4" color="#3300ff"><font size="4"


    kann doch nicht normal sein, oder?

    Einmal editiert, zuletzt von addyy (26. Juni 2006 um 14:57)

  • Also, mit der neueren Version von tinymce bin ivh überfragt. Ich denke, es kann sein, dass man sie in Wordpress anders einbinden muss (bevor ich nämlich gecheckt habe, dass der TinyMCE dabei ist, wollte ich das extra installieren und da war es anders beschrieben mit dem Einbinden). Ist aber nur eine Spekulation - wissen tu ich es nicht. ---> http://tinymce.moxiecode.com/tinymce/docs/installing.html ; http://expertinnen-web.de/2006-86/wordpr…assen/#comments

    Wegen dem Code. Den habe ich eigentlich noch nie angeschaut gehabt - aber möglich kann es schon sein, dass es so ausschaut. Eigene Klassen für deine ausgewählten Styles zu erzeugen wäre wohl aufwendig, denke ich. Oder?! Lebe einfach mit dem Code - wenn das Kinder benutzen werden die sich das eh nicht anschauen....

  • eigene Klassen

    wäre machbar, hab ich mich aber noch nicht mit beschäftigt, sozusagen noch k.A..
    Das Problem ist, daß die Kinder Beiträge schreiben sollen und die auch bunt werden sollen.
    Aber wenn da jedesmal über 20.000 Zeilen sinnloser Code zusammenkommen ist das wohl nicht sehr brauchbar.
    hmmmmmm

    trotzdem Danke erstmal

  • Naja, schön ist das mit dem vielen Code wirklich nicht. Leider kenne ich keine bessere Alternative dazu (aber ich glaube, dass so etwas immer mit viel Code verbunden sein wird). Aber eigentlich müsste es schon gehen, dass man eigene Klassen verfasst. Aber dann geht die Flexibilität wieder verloren.

    Na gut, mehr kann ich dazu nicht mehr sagen. Vielleicht findet sich jemand anderes, der einen Tipp hat.


  • und was mus man da verändern ???

  • Für nicht so php-Sichere und Ungeübte kann ich in dem Fall nur den Weg über EditorMonkey empfehlen: http://www.rajprasad.net/
    Das Plugin bringt sowohl FCKEditor, als auch TinyMCE mit, muss einfach aktiviert werden und auch die Konfiguration ist selbst mit Grundkenntnissen schnell geschafft, der Aufwand liegt bei etwa 10 bis 15 Minuten.

    Ich persönlich arbeite lieber mit dem FCKEditor, aber das kann man selbst testen, weil beides vorhanden ist und einfach umgeschaltet wird.

    Gruß Grufthopser

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!