# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php +++ components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php @@ -140,6 +140,15 @@ case 'html': case 'rss': return str_replace( "\n", '
', parent::getField( $field, $user, $output, $reason, $list_compare_types ) ); + case 'htmledit': + $fieldMaxLength = $this->getMaxLength( $field ); + + if ( $fieldMaxLength && defined( '_CB_VALIDATE_NEW' ) ) { + cbimport( 'cb.validator' ); + + cbValidator::addRule( "$( 'form[name=\"adminForm\"] textarea[name=\"" . $field->name . "\"]' ).rules( 'add', { maxlength: $fieldMaxLength } );" ); + } + // no break here in purpose, we want fallthrough! \ No newline at end of file default: return parent::getField( $field, $user, $output, $reason, $list_compare_types ); break;