Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Introduction
Zen Form plugin provides you with a distraction free mode that you can add to your forms or single inputs, textareas and selects.
Wrapper module for the Zen Form plugin, created by Idered. Unfortunately, Drupal 7 core includes a rather old version of jQuery and the plugin expects at least jQuery 1.7 (usage of certain functions, namely: .on()
and .prop()
), so I have created a fork of the plugin on Github, in which I replaced the functions with their "deprecated" counterparts.
Features
- Makes plugin available as a library (via Libraries module) - easy to use for developers.
- Adds toggleable distraction free mode to certain forms (defined in hook).
Installation
- Download latest version from my fork of the plugin on Github (zip: jquery-support-pre-1.7.zip).
- Create
zen_form_plugin
directory insites/all/libraries
. - Extract the
jquery-support-pre-1.7.zip
and from the package, copy the fileszen-form.js zen-form.css zen-form-sprites.png
tosites/all/libraries/zen_form_plugin
.
Known issues and limitations
- Not working if form is in an overlay (core Overlay module).
- Works only with inputs, textareas and selects.
Future plans
- Add proper readme file.
- Admin interface to enable/disable zen mode for certain forms.
- Support to add zen mode for single elements (instead of entire forms).
Project information
- Module categories: Administration Tools, Content Editing Experience
- Created by temaruk on , updated