--- loncom/homework/structuretags.pm 2001/04/05 00:10:23 1.34 +++ loncom/homework/structuretags.pm 2001/04/26 21:27:15 1.35 @@ -76,7 +76,11 @@ sub start_problem { } } if ($target eq 'edit') { - return "\n
".''; + return ' + + + +'; } return ''; } @@ -319,30 +323,39 @@ sub end_solved { sub start_startouttext { my ($target,$token,$parstack,$parser,$safeeval)=@_; - my $result=''; - if ($target eq "edit" ) { $result=" "; } - return $result; + my @result=(''.''); + if ($target eq 'edit' || $target eq 'modified' ) { @result=('','no'); } + return (@result); } sub end_startouttext { my ($target,$token,$parstack,$parser,$safeeval)=@_; my $result=''; + my $text=''; + if ($target eq 'edit') { - $result=&Apache::lonxml::get_all_text("endouttext",$$parser[$#$parser]); - $result=&Apache::edit::editfield($token->[1],$result); + $text=&Apache::lonxml::get_all_text("endouttext",$$parser[$#$parser]); + $result= + &Apache::edit::tag_start("outtext"). + &Apache::edit::editfield($token->[1],$text,"Text Block"); + } + if ($target eq 'modified') { + $text=&Apache::lonxml::get_all_text("endouttext",$$parser['-1']); + $result=''.&Apache::edit::modifiedfield(); } return $result; } sub start_endouttext { my ($target,$token,$parstack,$parser,$safeeval)=@_; my $result=''; - if ($target eq "edit" ) { $result=" "; } + if ($target eq "edit" ) { $result=&Apache::edit::tag_end("outtext"); } + if ($target eq "modified") { $result=''; } return $result; } sub end_endouttext { my ($target,$token,$parstack,$parser,$safeeval)=@_; - my $result=''; - if ($target eq "edit" ) { $result=" "; } - return $result; + my @result=('',''); + if ($target eq "edit" || $target eq 'modified') { @result=('','no'); } + return (@result); }