Opened 18 years ago
Closed 13 years ago
#700 closed Bug (wontfix)
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 (3)
comment:1 Changed 18 years ago by
| Reporter: | changed from Martin Kou to anonymous |
|---|
comment:2 Changed 18 years ago by
| Component: | General → Server : Perl |
|---|
comment:3 Changed 13 years ago by
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Perl integration was only available in FCKeditor which is no longer supported.

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