Jifty::Plugin::WyzzEditor - Simple WYSIWYG online editor for Jifty textarea


Jifty-Plugin-WyzzEditor documentation Contained in the Jifty-Plugin-WyzzEditor distribution.

Index


Code Index:

NAME

Top

Jifty::Plugin::WyzzEditor - Simple WYSIWYG online editor for Jifty textarea

SYNOPSIS

Top

In etc/config.yml

   Plugins:
     - WyzzEditor: {}

In your Model instead of

   render_as 'teaxterea';

use

  render_as 'Jifty::Plugin::WyzzEditor::Textarea';




In your View

  Jifty->web->link( 
    label   => _("Save"), 
    onclick => [
      { beforeclick =>
          "updateTextArea('".$action->form_field('myfield')->element_id."');" },
      { args => .... }
    ]
  );

DESCRIPTION

Top

Wyzz, simple WYSIWYG online editor usable in fragments

METHOD

Top

init

load wyzz.js on startup

AUTHOR

Top

Yves Agostini, <yvesago@cpan.org>

COPYRIGHT AND LICENSES

Top


Jifty-Plugin-WyzzEditor documentation Contained in the Jifty-Plugin-WyzzEditor distribution.
use strict;
use warnings;

package Jifty::Plugin::WyzzEditor;
use base qw/Jifty::Plugin/;

our $VERSION = '0.01';


sub init {
	my $self = shift;
	Jifty->web->javascript_libs([
	@{ Jifty->web->javascript_libs },
	"wyzz.js",
	]);
}

1;