Textarea.js. Problemi con i temi e i css

Se avete creato, usato o modificato un tema per drupal, e su Internet Explorer (IE, cioè il diavolo) vedete la textarea resizable spostata verso destra con un orrendo effetto di "rottura" (del DOM, non delle parti basse) allora questa piccola guida fa per voi.

Il problema è stato riscontrato da numerose persone, purtroppo non ho ancora trovato una soluzione definitiva. Sul forum di Drupal, qualcuno ha provato ad allungare il form-item per vedere il problema risolto. Purtroppo il campo subject viene spostato...e crea problemi a risoluzioni basse.

.form-item
{
width: 98%;
clear: none;
}

se volete tagliare la testa al toro, aggiungete queste righe a template.php per disabilitare completamente textarea.js. Naturalmente dovrete avere un tema phptemplate.

function phptemplate_textarea($element) {
$class = array('form-textarea');

$cols = $element['#cols'] ? ' cols="'. $element['#cols'] .'"' : '';
_form_set_class($element, $class);
return theme('form_element', $element, ''. check_plain($element['#value']) .'');
}

Ref:
disable resizable textareaProblem with textarea.js

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

Recent comments

Social Me

DA Member

Drupal Association Badge