--- loncom/xml/lonxml.pm 2007/08/17 20:34:31 1.450 +++ loncom/xml/lonxml.pm 2007/08/17 21:24:21 1.451 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.450 2007/08/17 20:34:31 albertel Exp $ +# $Id: lonxml.pm,v 1.451 2007/08/17 21:24:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1371,6 +1371,11 @@ $addbuttons var editor=new HTMLArea("filecont",config); editor.registerPlugin(FullPage); editor.generate(); + setTimeout( + function () { + HTMLArea._addEvents(editor._doc, + ["keypress","mousedown"], unClean); + },300); } FULLPAGE @@ -1402,15 +1407,17 @@ $cleanbut BUTTONS $buttons.=&Apache::lonhtmlcommon::spelllink('xmledit','filecont'); + my $textarea_events = &Apache::edit::element_change_detection(); + my $form_events = &Apache::edit::form_change_detection(); my $editfooter=(< -
+ $xml_help $buttons
- +
$buttons
@@ -1540,7 +1547,8 @@ ENDNOTFOUND $options{'bgcolor'} = '#FFFFFF'; $options{'only_body'} = 1; } - my $start_page = &Apache::loncommon::start_page(undef,undef, + my $js = &Apache::edit::js_change_detection(); + my $start_page = &Apache::loncommon::start_page(undef,$js, \%options); $result=$start_page. &Apache::lonxml::message_location().'

'.