We are trying to enable the module on the comment form that also has a TinyMCE WYSIWYG editor. The label for the text area hovers in the button array. (We are using 6.x on this project, but assuming that this effects all versions)

So is it possible to either:

a) Have a blacklist of form fields to ignore
b) Integrate with WYSIWYG to enable / disable per format

Cheers

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alan D.’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Active » Needs review
FileSize
2.11 KB

This was trivial, so here is the patch.

Alan D.’s picture

Title: WYSIWYG support / integration » Individual field exclusions
Alan D.’s picture

A small cross-platform error with JQuery inArray:

// UNIX only line endings, no split on MAC and trailing \r on windows
+  $blacklist = explode("\n", variable_get('compact_forms_excluded_fields' , ''));
// So this covers windows, unix and macs
+  $blacklist = preg_split("/\r\n|\n|\r/", variable_get('compact_forms_excluded_fields' , ''));
eL’s picture

compact_forms-field-exclusion-1267244-3.patch - TESTED and working fine.

itaine’s picture

@sun/tomsun - Why hasn't this patch been committed? It works well. Helps to exclude Mollom's captcha field, etc.

Alan D.’s picture

Status: Needs review » Reviewed & tested by the community

From #4 & #5 marking as Reviewed & tested

itaine’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
FileSize
2 KB

#3 is for 6.x-1.x-dev

Re-rolling for 7.x-1.x-dev.

Marko B’s picture

Priority: Normal » Critical

This is still not in DEV version, why is this so?

Alan D.’s picture

Priority: Critical » Normal

Critical is for something that is crashing the site badly / loss of data / security issues.
Major is for something that is really badly broken.

So bumping back down...

Marko B’s picture

In my case it was crashing the site badly, Visually :-) as compact forms appeared over math question in captcha and that looked bad. Anyway this works fine, should be in dev at least.

FiNeX’s picture

The patch works fine, thanks !

robertstaddon’s picture

Thanks for the patch! Can we somehow get it into the DEV version?

Sutharsan’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
46.02 KB
2.12 KB
1.62 KB

As first time user of this patch, I found the position of the textarea in the form not logical. It is an exception on the first input and is therefore closely related to that field. I decided to move the "Excluded Field CSS IDs" field below the "Form CSS IDs" field.

The description of the field did not inform me enough. I tried the field wrapper ID and tried the field ID. The latter worked correctly, the first did not. I changed the description of the field to better describe which IDs to enter. See screenshot.

compact_forms-field-exclusion-1267244-13.png

druvision’s picture

#7 works. +1 for committing it.

#13 only contains one of the files so it may only be checked after #7 is installed.

ropic’s picture

Issue summary: View changes

My solution

form.compact-form label[for=edit-captcha-response]{
top: 2em;
}

nickonom’s picture

Patch in #13 worked just as expected. RTBC.

nickonom’s picture

Status: Needs review » Reviewed & tested by the community

Please commit the patch as it give the module very needed functionality.