[svn r21663] proposal of possible places where the block copy and paste to pupils. Initially everything unlocked

skala
Juan Carlos Raña 16 years ago
parent f3604eeabb
commit 3139cc99e5
  1. 18
      main/inc/lib/fckeditor/myconfig.js

@ -710,13 +710,27 @@ if ( !( FCKConfig.PageConfig.UserIsCourseAdmin || FCKConfig.PageConfig.UserIsPla
// And blocking is for enumerated places only, which are identified through the name of the assigned toolbar set.
switch ( FCKURLParams['Toolbar'] )
{
case '' :
case 'Default' :
// lock=true / unlock=false
// Add here these toolbar sets for blocking copy/paste:
// case 'Toolbar1' :
// case 'Toolbar2' :
// ...
case 'FreeAnswer' :
FCKConfig.BlockCopyPaste = false ;
break ;
case 'Documents_Student' :
FCKConfig.BlockCopyPaste = false ; //document group
break ;
case 'Blog_Student' :
FCKConfig.BlockCopyPaste = false ;
break ;
case 'BlogComment_Student' :
FCKConfig.BlockCopyPaste = false ;
break ;
case 'Forum_Student' :
FCKConfig.BlockCopyPaste = false ;
break ;
case 'Wiki_Student' :
FCKConfig.BlockCopyPaste = true ;
break ;

Loading…
Cancel
Save