version 1.65, 2002/01/21 16:41:31
|
version 1.67, 2002/03/22 20:05:19
|
Line 79 sub start_script {
|
Line 79 sub start_script {
|
$result.=&Apache::edit::editfield($token->[1],$bodytext,'',50,4); |
$result.=&Apache::edit::editfield($token->[1],$bodytext,'',50,4); |
} |
} |
} else { |
} else { |
if ($target ne "meta") { $result = $token->[4]; } |
if ($target ne "meta") { |
|
$result = $token->[4]; |
|
my $bodytext=&Apache::lonxml::get_all_text("/script",$$parser[$#$parser]); |
|
$result.=$bodytext; |
|
} |
} |
} |
return $result; |
return $result; |
} |
} |
Line 157 sub start_scriptlib {
|
Line 161 sub start_scriptlib {
|
if ($target eq "edit" ) { |
if ($target eq "edit" ) { |
$result= |
$result= |
&Apache::edit::tag_start($target,$token,'New Script Functions'). |
&Apache::edit::tag_start($target,$token,'New Script Functions'). |
&Apache::edit::editfield($token->[1],$bodytext,'',40,1). |
&Apache::edit::editline($token->[1],$bodytext,'',40,1). |
$error.'</td></tr>'. |
$error.'</td></tr>'. |
&Apache::edit::end_table(); |
&Apache::edit::end_table(); |
} |
} |
Line 202 sub start_parserlib {
|
Line 206 sub start_parserlib {
|
if ($target eq "edit" ) { |
if ($target eq "edit" ) { |
$result= |
$result= |
&Apache::edit::tag_start($target,$token,'New Tag Definitions'). |
&Apache::edit::tag_start($target,$token,'New Tag Definitions'). |
&Apache::edit::editfield($token->[1],$bodytext,'',40,1). |
&Apache::edit::editline($token->[1],$bodytext,'',40,1). |
$error.'</td></tr>'. |
$error.'</td></tr>'. |
&Apache::edit::end_table(); |
&Apache::edit::end_table(); |
} |
} |
Line 273 sub start_import {
|
Line 277 sub start_import {
|
&Apache::lonxml::newparser($parser,\$file,$dir); |
&Apache::lonxml::newparser($parser,\$file,$dir); |
} elsif ($target eq "edit" ) { |
} elsif ($target eq "edit" ) { |
$result.=&Apache::edit::tag_start($target,$token); |
$result.=&Apache::edit::tag_start($target,$token); |
$result.=&Apache::edit::editfield($token->[1],$bodytext,'',40,1); |
$result.=&Apache::edit::editline($token->[1],$bodytext,'',40,1); |
#FIXME this need to convert $bodytext to be a contruction space reference |
#FIXME this need to convert $bodytext to be a contruction space reference |
#my $location=&Apache::lonnet::filelocation($Apache::lonxml::pwd['-1'],$bodytext); |
#my $location=&Apache::lonnet::filelocation($Apache::lonxml::pwd['-1'],$bodytext); |
#$result.="Click<a href=\"$location\">here</a> to edit<br />" |
#$result.="Click<a href=\"$location\">here</a> to edit<br />" |