Ticket #700 (new Bug)

Opened 15 months ago

Last modified 11 months ago

Perl Integration - Assigning a text value during the editor

Reported by: anonymous Owned by:
Priority: Normal Milestone:
Component: Server : Perl Version:
Keywords: SF Cc:

Description

Can't assign a value to the editor (v.2.2) during instance from Perl code.

Sample instance:

...
FCKeditor('instance_name');
my $BasePath = $sBasePath;
my $Value = "Sample text";
my $fckedit = CreateHtml($Value);
...

The response returns an empty text field in the editor. The reason is simple - there is no value assignment to the variable $Value in the CreateHTML subroutine in "fckeditor.pl"

Now:

sub CreateHtml
{
$HtmlValue = &specialchar_cnv($Value);
$Html = '<div>' ;
..
}

Should be:

sub CreateHtml
{
$Value = shift();
$HtmlValue = &specialchar_cnv($Value);
$Html = '<div>' ;
..
}

Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1429965&group_id=75348&atid=543653

Change History

Changed 15 months ago by martinkou

  • reporter changed from martinkou to anonymous
FCKeditor('instance_name');
my $BasePath = $sBasePath;
my $Value = "Sample text";
my $fckedit = CreateHtml($Value);
...

The response returns an empty text field in the editor. The reason is simple - there is no value assignment to the variable $Value in the CreateHTML subroutine in "fckeditor.pl"

Now:

sub CreateHtml
{
$HtmlValue = &specialchar_cnv($Value);
$Html = '<div>' ;
..
}

Should be:

sub CreateHtml
{
$Value = shift();
$HtmlValue = &specialchar_cnv($Value);
$Html = '<div>' ;
..
}

Moved from SF. Original poster: Anonymous

Changed 11 months ago by alfonsoml

  • component changed from General to Server : Perl
Note: See TracTickets for help on using tickets.