This is a quick rewrite of the module to support Drupal 4.7. This does not need jQuery and works when editing the node body and comments (but you could edit widgeditor_form_alter to add more forms). There is a global site setting to enable/disable widgEditor by default, and a per-user setting. Unlike the 5.0 version, the editor cannot be activated on-the-fly from the form, because I removed the jQuery stuff and was too lazy to mess with javascript. :-)
Since this is 4.7, I'm not sure if Gurpartap would like to commit it, but I think it might not hurt to. ;-)
Beside installing this version of the module, you also need to do the following to get things running smoothly:
- Install forms_no_js and disable the resizable property from textareas.
- Patch widgEditor.js (see below).
Comment | File | Size | Author |
---|---|---|---|
#1 | widgeditor_js_47.patch | 1.77 KB | David Lesieur |
widgeditor.module.txt | 2.06 KB | David Lesieur |
Comments
Comment #1
David Lesieur CreditAttribution: David Lesieur commentedHere's the patch for widgeditor.js. It was inspired by this.
Comment #2
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedWe are actually moving out of fQuery dependency. Will submit a patch soon, which using hook_elements(). This also adds proper support for CCK textarea fields. So unless that gets in, marking this to 'needs work', so we can add support for all textarea fields, other than just specified ones. Surely, 4.7 version will benefit many.
Comment #3
Gurpartap Singh CreditAttribution: Gurpartap Singh commented4.7 is now out of range. :P