Drupal 6: WYSIWYG TinyMCE + Panels (Benutzerdefinierter Inhalt) *UPDATE Drupal 7*

Drupal 6: Panel mit Benutzerdefiniertem Inhalt und TinyMCE WYSIWYG Editor

... und weiter geht die TinyMCE Editor Beitragsreihe.
Entschuldigt die derzeitige Spezialisierung auf das Thema, allerdings haben wir aktuell in einem Kundenprojekt einen starken Bezug dazu, was wiederum zu mehr Tipps für euch führt!

Im Gegensatz zu unseren eigentlichen Standard Editoren: CKEditor und BUEditor (je nach Einsatzgebiet), hat der TinyMCE einige Probleme in Verbindung mit Views.

Schuld ist vermutlich die starke Verwendung von Ajax und die daraus folgende nötige nachträgliche Initialisierung des Editors auf die Panel Inhalte.

Wenn ihr auch das Problem habt, dass der TinyMCE in Panels beim Erstellen von "benutzerdefinierten Inhalt" streikt, sprich die Schaltflächen / Buttons nicht angezeigt werden, hier der entscheidende Tipp:

Gefunden habe ich ihn in diesem Beitrag:
http://drupal.org/node/235764#comment-3846600

Es wurde ein kleines Modul zur Behebung des Problems von einem findigen Drupal.org User erstellt, das ihr hier herunterladen könnt:
https://github.com/jbylsma/wysiwyg_panels

Nach der Installation und Aktivierung funktioniert der Editor auch großartig in Panel Inhalten. Großes Lob und ein riesiges Dankeschön für diese tolle Lösung! Smile

*UPDATE*: Drupal 7 Lösung!
Die bisherige Lösung war ausschließlich für Drupal 6 nutzbar. In Drupal 7 wird nun versucht, das Problem genereller anzugehen und den Editor via JavaScript nachzuladen.
Die Lösung stelle ich in einem Separaten Beitrag vor:

Comments

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • Pairs of<blockquote> tags will be styled as a block that indicates a quotation.
  • You can enable syntax highlighting of source code with the following tags: <c>, <cpp>, <css>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <smarty>, <xml>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Textual smileys will be replaced with graphical ones.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.