Color picker for use in TWiki forms and TWiki applications
Introduction
This TWiki plugin packages the Farbtastic color picker, which is a jQuery plugin developed by Steven Wittens of Acko.net. The package adds a color picker to TWiki forms and TWiki applications.
This will show an HTML input field named "text_color" and a color picker tied to it. The size, value and class parameters are optional. Additional parameters can be supplied; they will be added to the HTML input field.
Test: (this only works if the ColorPickerPlugin is installed and enabled)
Using the color picker with disabled plugin
It is also possible to use the color picker in HTML forms with disabled ColorPickerPlugin:
This will show an HTML input field named "demo_color" and a color picker tied to it. The "code" section should be included once per topic, the "picker" section can be included as many times as needed. The NAME parameter is required; SIZE, VALUE and EXTRA parameters are optional. Use the EXTRA parameter to add additional parameters to the HTML input field.
Test: (this works only if the ColorPickerPlugin is installed and disabled)
Detailed Documentation
This package includes a small Perl module to make it easier to use the
color picker from other TWiki plugins. This module includes the functions:
addHEAD
TWiki::Plugins::ColorPickerPlugin::addHEAD( )
addHEAD needs to be called before TWiki::Plugins::ColorPickerPlugin::renderForEdit
is called.
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.
Like many other TWiki extensions, this module is shipped with a fully
automatic installer script written using the BuildContrib.
If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)