Index: wymeditor.module
===================================================================
--- wymeditor.module (revision 43)
+++ wymeditor.module (working copy)
@@ -16,7 +16,6 @@
// Check if the form has an input format selection group
$format_types = _wymeditor_input_format_alter($form);
-
if ($key = array_search('WYMeditor', $format_types)) {
$rids = array();
$filename = array();
@@ -63,11 +62,7 @@
// add the css for format the filter format
drupal_add_css($module_path .'/wymeditor.css');
drupal_add_js($module_path .'/wymeditor/jquery.wymeditor.js');
- drupal_add_js($module_path .'/wymeditor/jquery.wymeditor.explorer.js');
- drupal_add_js($module_path .'/wymeditor/jquery.wymeditor.mozilla.js');
- drupal_add_js($module_path .'/wymeditor/jquery.wymeditor.opera.js');
- drupal_add_js($module_path .'/wymeditor/jquery.wymeditor.safari.js');
- drupal_add_js($module_path .'/wymeditor/lang/'. $language->language .'.js');
+ drupal_add_js($module_path .'/wymeditor/jquery.wymeditor.pack.js');
if (count($plugins) > 0) {
foreach ($plugins as $plugin) {
@@ -128,12 +123,12 @@
$form['containers'] = array('#type' => 'fieldset', '#title' => t('Containers'), '#collapsed' => TRUE, '#collapsible' => TRUE);
$form['containers']['containers_conf'] = array('#type' => 'textarea', '#title' => t('Configure containers'),
'#default_value' => variable_get('wymeditor_containers', ''), '#attributes' => array('wrap' => 'false'),
- '#description' => t('Please introduce your containers, one container per line.
sintaxe description | tag
e.g : Paragraph | P'),
+ '#description' => t('Please introduce your containers, one container per line.
syntaxe description | tag
e.g : Paragraph | P'),
'#resizable' => FALSE, '#rows' => 8, '#cols' => 80);
$form['classes'] = array('#type' => 'fieldset', '#title' => t('Classes'), '#collapsed' => TRUE, '#collapsible' => TRUE);
$form['classes']['classes_conf'] = array('#type' => 'textarea', '#title' => t('Configure classes'),
'#default_value' => variable_get('wymeditor_classes', ''), '#attributes' => array('wrap' => 'false'),
- '#description' => t('Please introduce your classes, one container per line.
sintaxe name | description | allowed
e.g : important | Important | *'),
+ '#description' => t('Please introduce your classes, one container per line.
syntaxe name | description | allowed
e.g : important | Important | *'),
'#resizable' => FALSE, '#rows' => 8, '#cols' => 80);
$form['submit']['#weight'] = 2;
Index: filters-format.js
===================================================================
--- filters-format.js (revision 43)
+++ filters-format.js (working copy)
@@ -3,8 +3,12 @@
$('.filter-formats .form-item input[@type=radio][@checked]').each( function() {
var filter_format = $(this).parents('.filter-formats');//.prevAll(":first");
var form_item = $(filter_format).parent();
- var textarea = $(form_item).find('textarea')[1];
-
+ var textareas = $(form_item).find('textarea');
+ if (textareas[0].id=='edit-teaser-js') {
+ textarea = textareas[1];
+ } else {
+ textarea = textareas[0];
+ }
// change the input format HTML
var selected = $(this).parent().text();
var legend = $(this).parents('.filter-formats').children('legend');
@@ -59,7 +63,6 @@
$(this).parents('.filter-formats-box').slideUp('slow');
});
};
-
if (Drupal.jsEnabled) {
$(document).ready(Drupal.filterFormatLoader);
};