CGI::FCKeditor - FCKeditor For OOP Module
use CGI::FCKeditor; #Simple my $fck = CGI::FCKeditor->new(); $fck->set_base('/FCKeditor/'); #FCKeditor Directory my $form_input_source = $fck->fck; #output html source #Basic my $fck = CGI::FCKeditor->new(); $fck->set_name('fck'); #HTML <input name>(default 'fck') $fck->set_base('/FCKeditor/'); #FCKeditor Directory $fck->set_set('Basic'); #FCKeditor Style(default 'Default') $fck->set_value('READ ME'); #input field default value(default '') my $form_input_source = $fck->fck; #output html source #Short my $fck = CGI::FCKeditor->new('fck','/FCKeditor/','Basic','READ ME'); my $form_input_source = $fck->fck;
CGI::FCKeditor is FCKeditor(http://www.fckeditor.net/) Controller for Perl OOP. FCKeditor(http://www.fckeditor.net/) is necessary though it is natural.
my $fck = CGI::FCKeditor->new();
Constructs instance.
$fck->set_name('fck');
Set <input name="fck"> on HTML source. Default 'fck'.
$fck->set_base('/dir/FCKeditor/');
Set URL directory with fckeditor.js. Default '/FCKeditor'.
$fck->set_width('100%');
Set FCKeditor Width. Default '100%'.
$fck->set_height('500');
Set FCKeditor Height. Default '500'.
$fck->set_set('Basic');
Set FCKeditor Style. Default 'Default'.
$fck->set_value('Read ME');
Set <input value="Read ME"> on HTML source. Default ''.
$form_input_source = $fck->fck;
FCKeditor Render on HTML.
Kazuma Shiraiwa
This module owes a lot in code to fckeditor.pl(Author:Takashi Yamaguchi) in FCKeditor_2.3.2.
Copyright (C) 2006 by Kazuma Shiraiwa. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install CGI::FCKeditor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::FCKeditor
CPAN shell
perl -MCPAN -e shell install CGI::FCKeditor
For more information on module installation, please visit the detailed CPAN module installation guide.