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