maxlength was adding to the body elemenent of a form even though the field was disabled (no label for body field in the content type).

This caused:
1) a mysterious input filter fieldset to appear, unattached to any visible textarea
2) a js error with WYSIWYG module, which resulted in a syntax error and no JS to function on the page, including the countdown javacript.

Attached patch only alters the title and body elements of the form if they are present. This fixed the two issues above.

CommentFileSizeAuthor
body_title.patch719 bytesomerida

Comments

aron novak’s picture

Status: Needs review » Fixed

Added for title as well (is it possible to not have title element in form? Maybe yes)

omerida’s picture

It is possible, via form_alter to hide it or via modules like automatic_nodetitle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.