File: README

package info (click to toggle)
libjifty-plugin-wikitoolbar-perl 1.00-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 292 kB
  • ctags: 143
  • sloc: perl: 1,774; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 921 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
NAME
    Jifty::Plugin::WikiToolbar - Jifty plugin to add a wiki toolbar to your
    textarea box

SYNOPSIS
    In etc/config.yml

       Plugins:
         - WikiToolbar: {}

    In your Model instead of

       render_as 'textarea';

    use

       is WikiToolbar;

    or you can custom rows size with

     sub Jifty::Plugin::WikiToolbar::Textarea::rows { return 15; };

    To custom the toolbar, copy wikitoolbar.js in your application, at the
    end of the file put your changes with addButton function.

DESCRIPTION
    Add a toolbar to your textarea field. Default toolbar provide markdown
    markup syntax. http://daringfireball.net/projects/markdown/

METHOD
  init
    load wikitoolbar.js on startup

AUTHOR
    Yves Agostini, <yvesago@cpan.org>

LICENSE
    Copyright 2007-2010, Yves Agostini

    This program is free software and may be modified and distributed under
    the same terms as Perl itself.