|
@@ -22,35 +22,35 @@
|
|
|
|
|
|
|
|
|
/*
|
|
|
- * Custom editor configuration settings.
|
|
|
- *
|
|
|
- * Follow this link for more information:
|
|
|
- * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
|
|
|
- *
|
|
|
- * Please, do not modify the file fckconfig.js in order to make upgrades easy.
|
|
|
- * Just create your desired settings in this file, myconfig.js.
|
|
|
- */
|
|
|
-
|
|
|
-FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../../../../css/public_admin/course.css' ;
|
|
|
-FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
|
|
|
-FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;
|
|
|
-
|
|
|
-FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // To protect <script> tags.
|
|
|
-
|
|
|
-FCKConfig.AutoDetectLanguage = false ;
|
|
|
-FCKConfig.DefaultLanguage = 'en' ;
|
|
|
-FCKConfig.ContentLangDirection = 'ltr' ;
|
|
|
-
|
|
|
-FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
|
|
|
-FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml.php' ;
|
|
|
-
|
|
|
-FCKConfig.DisableFFTableHandles = false ;
|
|
|
-
|
|
|
-FCKConfig.SmileyWindowWidth = 450 ;
|
|
|
-FCKConfig.SmileyWindowHeight = 250 ;
|
|
|
-
|
|
|
-
|
|
|
-/*
|
|
|
+ * Custom editor configuration settings.
|
|
|
+ *
|
|
|
+ * Follow this link for more information:
|
|
|
+ * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
|
|
|
+ *
|
|
|
+ * Please, do not modify the file fckconfig.js in order to make upgrades easy.
|
|
|
+ * Just create your desired settings in this file, myconfig.js.
|
|
|
+ */
|
|
|
+
|
|
|
+FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../../../../css/public_admin/course.css' ;
|
|
|
+FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
|
|
|
+FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;
|
|
|
+
|
|
|
+FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // To protect <script> tags.
|
|
|
+
|
|
|
+FCKConfig.AutoDetectLanguage = false ;
|
|
|
+FCKConfig.DefaultLanguage = 'en' ;
|
|
|
+FCKConfig.ContentLangDirection = 'ltr' ;
|
|
|
+
|
|
|
+FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
|
|
|
+FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml.php' ;
|
|
|
+
|
|
|
+FCKConfig.DisableFFTableHandles = false ;
|
|
|
+
|
|
|
+FCKConfig.SmileyWindowWidth = 450 ;
|
|
|
+FCKConfig.SmileyWindowHeight = 250 ;
|
|
|
+
|
|
|
+
|
|
|
+/*
|
|
|
* Editor's toolbar definitions.
|
|
|
*/
|
|
|
|
|
@@ -492,11 +492,11 @@ FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5' ;
|
|
|
* Helper variables.
|
|
|
*/
|
|
|
|
|
|
-// At this moment of loading editor's javascripts, the configuration settings FCKConfig.*
|
|
|
-// have not been read yet from the php-integration file. We are able to access them anyway.
|
|
|
-FCK.AdvancedFileManager = FCKConfig.PageConfig.AdvancedFileManager ; // true or false
|
|
|
+// At this moment of loading editor's javascripts, the configuration settings FCKConfig.*
|
|
|
+// have not been read yet from the php-integration file. We are able to access them anyway.
|
|
|
+FCK.AdvancedFileManager = FCKConfig.PageConfig.AdvancedFileManager ; // true or false
|
|
|
|
|
|
-// TODO: To be checked for removal.
|
|
|
+// TODO: To be checked for removal.
|
|
|
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
|
|
|
|
|
|
|
|
@@ -698,41 +698,55 @@ if ( FCK.AdvancedFileManager )
|
|
|
FCKConfig.MP3Upload = false ;
|
|
|
//FCKConfig.FlashUpload = false ; //See plugin
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-/*
|
|
|
- * Blocking copy/pase - configuration.
|
|
|
- */
|
|
|
-
|
|
|
-// Blocking is for learners only.
|
|
|
-if ( !( FCKConfig.PageConfig.UserIsCourseAdmin || FCKConfig.PageConfig.UserIsPlatformAdmin ) )
|
|
|
-{
|
|
|
- // And blocking is for enumerated places only, which are identified through the name of the assigned toolbar set.
|
|
|
- switch ( FCKURLParams['Toolbar'] )
|
|
|
- {
|
|
|
- case '' :
|
|
|
- case 'Default' :
|
|
|
- // Add here these toolbar sets for blocking copy/paste:
|
|
|
- // case 'Toolbar1' :
|
|
|
- // case 'Toolbar2' :
|
|
|
- // ...
|
|
|
- case 'FreeAnswer' :
|
|
|
- FCKConfig.BlockCopyPaste = true ;
|
|
|
- break ;
|
|
|
-
|
|
|
- default :
|
|
|
- FCKConfig.BlockCopyPaste = false ;
|
|
|
- }
|
|
|
-}
|
|
|
-else
|
|
|
-{
|
|
|
+
|
|
|
+
|
|
|
+/*
|
|
|
+ * Blocking copy/pase - configuration.
|
|
|
+ */
|
|
|
+
|
|
|
+// Blocking is for learners only.
|
|
|
+if ( !( FCKConfig.PageConfig.UserIsCourseAdmin || FCKConfig.PageConfig.UserIsPlatformAdmin ) )
|
|
|
+{
|
|
|
+ // And blocking is for enumerated places only, which are identified through the name of the assigned toolbar set.
|
|
|
+ switch ( FCKURLParams['Toolbar'] )
|
|
|
+ {
|
|
|
+ // 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 ;
|
|
|
+
|
|
|
+ default :
|
|
|
+ FCKConfig.BlockCopyPaste = false ;
|
|
|
+ }
|
|
|
+}
|
|
|
+else
|
|
|
+{
|
|
|
FCKConfig.BlockCopyPaste = false ;
|
|
|
-}
|
|
|
-
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* Other settings.
|
|
|
*/
|
|
|
|
|
|
-// TODO: This setting seems obsolete. To be checked for removal.
|
|
|
-FCKConfig.UserStatus = 'teacher' ;
|
|
|
+// TODO: This setting seems obsolete. To be checked for removal.
|
|
|
+FCKConfig.UserStatus = 'teacher' ;
|