[LON-CAPA-cvs] cvs: loncom /html/adm/ckeditor ckeditor_3.0.1.tar.gz commands loncapaconfig.js

faziophi faziophi@source.lon-capa.org
Tue, 22 Dec 2009 03:32:13 -0000


faziophi		Tue Dec 22 03:32:13 2009 EDT

  Added files:                 
    /loncom/html/adm/ckeditor	ckeditor_3.0.1.tar.gz loncapaconfig.js 
                             	commands 
  Log:
  Adding CKEditor 3.0 files to html/adm.
  
  
  

Index: loncom/html/adm/ckeditor/loncapaconfig.js
+++ loncom/html/adm/ckeditor/loncapaconfig.js
CKEDITOR.editorConfig = function (config) {
	/*
	FCKConfig.ToolbarSets["Default"] = [
		['Source','DocProps'],
		['Cut','Copy','Paste','PasteText','PasteWord'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
		['OrderedList','UnorderedList','-','Outdent','Indent'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
		['Link','Unlink','Anchor'],
		['Table', 'Rule', 'Smiley','SpecialChar','PageBreak'], // removed 'Image', 'Table' from front
		['TextColor','BGColor'],
		['Style','FontFormat','FontName','FontSize'],
		['FitWindow','-','About']
	] ;
	FCKConfig.LinkUpload = false ;
	FCKConfig.FlashBrowser = false ;
	FCKConfig.FlashUpload = false ;
	//FCKConfig.Plugins.Add('autogrow');
	//FCKConfig.AutoGrowMax = 500;
	FCKConfig.IgnoreEmptyParagraphValue = true;
	FCKConfig.FormatSource = false;
	FCKConfig.FormatOutput = true;
	FCKConfig.EnterMode = 'br' ; // p | div | br
	FCKConfig.ShiftEnterMode = 'p' ; // p | div | br
	FCKConfig.ImageBrowser = false;
	*/
	config.browserContextMenuOnCtrl = true;
	config.disableNativeSpellChecker = false;
	//config.enterMode = CKEDITOR.ENTER_BR;
	//config.shiftEnterMode = CKEDITOR.ENTER_P;
	
	config.ignoreEmptyParagraph = true;
	config.smiley_path = '/adm/lonIcons/';
	
	config.smiley_descriptions = [
    'happy', 'sad', 'wink', 'big smile', 'uncertain', 'raspberry',
    'embarrassed', 'cool', 'glasses', 'plain', 'surprised', 'angry',
    'crying', 'quiet', 'uncertain', 'kiss', 'sick', 'heart',
    'rose', 'pizza', 'ninja', 'pirate', 'agree', 
    'disagree', 'angel'];
    
    config.smiley_images = [
    'face-smile.png','face-sad.png','face-wink.png','face-smile-big.png','face-uncertain.png','face-raspberry.png',
    'face-embarrassed.png','face-cool.png','face-glasses.png','face-plain.png','face-surprise.png','face-angry.png',
    'face-crying.png','face-quiet.png','face-uncertain.png','face-kiss.png','face-sick.png','heart.png',
    'rose.png','food-pizza.png','face-ninja.png', 'face-pirate.png', 'opinion-agree.png',
    'opinion-disagree.png', 'face-angel.png'];
	
	config.toolbar_Full =
	[
		['Source','-','Preview'],
		['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		'/',
		['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink','Anchor'],
		['Image','Table','HorizontalRule','Smiley','SpecialChar'],
		'/',
		['Styles','Format','Font','FontSize'],
		['TextColor','BGColor'],
		['Maximize', 'ShowBlocks','-','About']
	];
}