Bläddra i källkod

re-enabling copy/paste for normal users.
Decissions like these should not be made by programmers but by the users (platformadmin).
So my idea would be to turn this into a platform setting if this is really necessary

Patrick Cool 15 år sedan
förälder
incheckning
4b2b1d2a3b
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      main/inc/lib/fckeditor/fckeditor.php

+ 1 - 3
main/inc/lib/fckeditor/fckeditor.php

@@ -169,9 +169,7 @@ class FCKeditor
 		$config = $this->get_default_configuration();
 		$this->read_configuration($config);
 
-		if ((api_is_allowed_to_edit() || api_is_platform_admin()) && isset($this->Config['BlockCopyPaste'])) {
-			$this->Config['BlockCopyPaste'] = false;
-		}
+		$this->Config['BlockCopyPaste'] = false;
 
 		//----------------------------------------------------------------------------------------