Startseite
  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche
Startseite › Forum › Drupalcenter.de › Module ›

TinyMCE Probeme

Eingetragen von Anonymous (0)
am 26.10.2005 - 19:42 Uhr in
  • Module

Hallo

1. Laut Einstellung kann man eine eigene CSS Datei für den Editor hinterlegen.
Diese classen sollten dann auch in den DupDown erscheinen, leider funktioniert dieses nicht, sie ist leer.
Wenn ich als Setting das "use theme CSS" auswähle geht es, leider ist diese style datei viel zu lang.

Administrator->Settings->TinyMCE

Geht nicht
Editor CSS: define css
CSS path: /theme/meintheme/meine.css

Geht
Editor CSS: use theme css
CSS path:

Das ist doch ein Bug?

2. Darunter gibt es eine Einstellung für CSS classes:
Weis einer wie die Datei aufgebaut werden soll/muss.

3. Problem
Laut Anleitung kann bei einen eigenen THEME die Steuerung wann der Editor erscheinen soll besser steuern.
Verstehe gar nichts, wohin und wann kommt der Aufruf zu starte?

Auszug Install:

Developers have complete control over when and how tinymce is enabled
for each textarea inside Drupal by creating a custom Drupal theme
function. The following example assumes you're using a phptemplate based theme.

Put the following function in your themes template.php file:

/**
* Customize a TinyMCE theme.
*
* @param init
* An array of settings TinyMCE should invoke a theme. You may override any
* of the TinyMCE settings. Details here:
*
* http://tinymce.moxiecode.com/wrapper.php?url=tinymce/docs/using.htm
*
* @param textarea_name
* The name of the textarea TinyMCE wants to enable.
*
* @param theme_name
* The default tinymce theme name to be enabled for this textarea. The
* sitewide default is 'simple', but the user may also override this.
*
* @param is_running
* A boolean flag that identifies id TinyMCE is currently running for this
* request life cycle. It can be ignored.
*/
function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
switch ($textarea_name) {
// Disable tinymce for these textareas
case 'log':
case 'img_assist_pages':
case 'caption':
unset($init);
break;

// Force the 'simple' theme for some of the smaller textareas.
case 'signature':
case 'site_mission':
case 'site_footer':
case 'settings][access_pages':
$init['theme'] = 'simple';
unset($init['theme_advanced_toolbar_location']);
unset($init['theme_advanced_toolbar_align']);
unset($init['theme_advanced_path_location']);
unset($init['theme_advanced_blockformats']);
unset($init['theme_advanced_styles']);
break;
}

// Add some extra features when using the advanced theme.
switch ($theme_name) {
case 'advanced':
$init['extended_valid_elements'] = 'a[href|target|name|title|onclick]';
$init['theme_advanced_buttons3_add_before'] = 'tablecontrols,separator';
$init['plugins'] = file_exists(drupal_get_path('module', 'tinymce'). '/tinymce/jscripts/tiny_mce/plugins/drupalimage') ? 'drupalimage,table,emotions,print' : 'table,emotions,print';
$init['theme_advanced_buttons3_add'] = 'drupalimage,emotions,separator,print';
break;
}

// Always return $init; !!
return $init;
}

If you study the above function you can see that tinymce can be completely
disabled or you can even switch themes for a given textarea.

Vielen Dank!

Gruß DOCI

‹ Internationalization und breadcrumb bug Suche Modul ›
  • Anmelden oder Registrieren um Kommentare zu schreiben

Benutzeranmeldung

  • Registrieren
  • Neues Passwort anfordern

Aktive Forenthemen

  • erfahrung mit dem Modul script manager
  • Verständnisfrage private_files in Drupal
  • [erledigt]MP3 in Drupal 10 einbinden
  • HTML oder JS Code wird nicht ausgeführt
  • Posts von einem Inhaltstyp in einen anderen verschieben
  • Mysql Ver 8.0.41 zu MariaDB 10.11.11
  • DrupalCamp Ruhr 12. / 13. September in Essen!
  • [gelöst]Zugriff auf inhaltstyp für angemeldete Benutzer wird verweigert
  • Word DOC Export Modul/Funktion gesucht
  • W3CSS Paragraphs Views
  • Advertising Modul gesucht
  • Drupal 11 neu aufsetzen und Bereiche aus 10 importieren
Weiter

Neue Kommentare

  • dinmikkith schrieb JavaScript
    vor 1 Woche 1 Tag
  • Ex- und Import nutzen
    vor 1 Woche 3 Tagen
  • cut&paste lässt sich automatisieren
    vor 1 Woche 3 Tagen
  • geht, soweit mir bekannt, nur
    vor 1 Woche 4 Tagen
  • Inkompatibilität zwischen MySQL u. MariaDB sowie SQL-Basiswissen
    vor 1 Woche 4 Tagen
  • JavaScript gehört in Drupal
    vor 1 Woche 4 Tagen
  • JavaScript gehört in Drupal
    vor 1 Woche 4 Tagen
  • Ich würde mich an die beiden
    vor 3 Wochen 2 Tagen
  • @dinmikkith leider
    vor 3 Wochen 3 Tagen
  • Da gibt's schon was. Ich
    vor 3 Wochen 3 Tagen

Statistik

Beiträge im Forum: 250016
Registrierte User: 20329

Neue User:

  • antidetect-browser25
  • freundbs
  • Lorydom

» Alle User anzeigen

User nach Punkten sortiert:
wla9455
stBorchert6003
quiptime4972
Tobias Bähr4019
bv3924
ronald3855
md3717
Thoor3678
Alexander Langer3416
Exterior2903
» User nach Punkten
Zur Zeit sind 0 User und 3 Gäste online.

Hauptmenü

  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche

Quicklinks I

  • Infos
  • Drupal Showcase
  • Installation
  • Update
  • Forum
  • Team
  • Verhaltensregeln

Quicklinks II

  • Drupal Jobs
  • FAQ
  • Drupal-Kochbuch
  • Best Practice - Drupal Sites - Guidelines
  • Drupal How To's

Quicklinks III

  • Tipps & Tricks
  • Drupal Theme System
  • Theme Handbuch
  • Leitfaden zur Entwicklung von Modulen

RSS & Twitter

  • Drupal Planet deutsch
  • RSS Feed News
  • RSS Feed Planet
  • Twitter Drupalcenter
Drupalcenter Team | Impressum & Datenschutz | Kontakt
Angetrieben von Drupal | Drupal is a registered trademark of Dries Buytaert.
Drupal Initiative - Drupal Association