Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
filter.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2007 at 20:13 UTC
Updated:
18 Aug 2008 at 21:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
btully commentednote that if one deletes the '#maxlength' => 255 from filter.module it then gets reset to maxlength="128" in the form.
ewwww.
Comment #2
robloachNew features belong to 6.x-dev.
The default maxlength for textfields is 128, so removing it is not the solution. I assume this issue came up earlier so the design decision was just to double(ish) the amount of allowed characters. If we were to take action on this, and it has been proven to be an issue, I'd suggest doubling it even further to 512. It seems in the hands of the core committers now.
Comment #3
BioALIEN commentedSetting this issue as a duplicate of #254725: Maxlength field for Allowed HTML tags too short
Comment #4
nrauni commentedi tried put this code in my template.php file and do a condition...
function phptemplate_textfield($element) {
$size = empty($element['#size']) ? '' : ' size="'. $element['#size'] .'"';
if( $element['#id'] != 'edit-taxonomy-tags-2' ) {
$maxlength = ' maxlength="9999"';
}
$class = array('form-text');
$extra = '';
$output = '';
if ($element['#autocomplete_path']) {
drupal_add_js('misc/autocomplete.js');
$class[] = 'form-autocomplete';
$extra = ' TRUE))) .'" disabled="disabled" />';
}
_form_set_class($element, $class);
if (isset($element['#field_prefix'])) {
$output .= ''. $element['#field_prefix'] .' ';
}
$output .= '';
if (isset($element['#field_suffix'])) {
$output .= ' '. $element['#field_suffix'] .'';
}
return theme('form_element', $element, $output) . $extra;
}
this code remove the maxlength only of my tag field.... but it not validate...
how can i change it???
Comment #5
damien tournoud commentedThis issue is now solved in 6.4.
Comment #6
BioALIEN commentedAnd it has been backported to the latest 5.x branch too.
Issue closed.