I receive the error message: Replacement text cannot be longer than 255 characters

I really wish it could be (longer than 255 characters).

Any reason for this?
Are patches welcome? :D

Comments

justingeeslin’s picture

As a note, to enable this.

One needs to alter the {wordfilter} table. The replacement field needs to be altered. I changed the replacement column from a varchar(255) to mediumtext.
varchar can hold a maximum of 255 characters. mediumtext can hold a maximum of 16777215 characters (according to some reading).

Then, one has to allow the add and edit word forms to allow more than 255 characters.

On lines 475 & 535, I changed
'#maxlength' => 255,
to
'#maxlength' => 16777215,

This would probably be better served up as a patch, but everything seems to work now.

mxh’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 support ended on February 24th 2016. https://www.drupal.org/drupal-6-eol