Browse Source

Bug #573 - Desactivation of IE proprietary commenting tags inside the text before loading it on the online editor. This fix has been proposed by Hubert Borderiou, see http://support.chamilo.org/issues/573

Ivan Tcholakov 15 years ago
parent
commit
9f3846d30b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/document/edit_document.php

+ 3 - 1
main/document/edit_document.php

@@ -656,7 +656,9 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || $is_allowed_to_
 
 	$read_only_flag=$_POST['readonly'];
 
-	$defaults['texte'] = $texte;
+	// Desactivation of IE proprietary commenting tags inside the text before loading it on the online editor.
+	// This fix has been proposed by Hubert Borderiou, see Bug #573, http://support.chamilo.org/issues/573
+	$defaults['texte'] = str_replace('<!--[', '<!-- [', $texte);
 
 	//if($extension == 'htm' || $extension == 'html')
 	// HotPotatoes tests are html files, but they should not be edited in order their functionality to be preserved.