// Preview
FCKConfig.PreviewUrl = '';
FCKConfig.ContentId = '';

FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif', FCKConfig.BasePath + 'plugins/images/document.gif' ] ;

FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;

FCKConfig.Plugins.Add('MySource');
FCKConfig.Plugins.Add('MyPreview');
FCKConfig.Plugins.Add('MyLink');
FCKConfig.Plugins.Add('MyImage');
FCKConfig.Plugins.Add('document', 'en,ru');

FCKConfig.ProtectedSource.Add( /(<inp2:[^\>]+>)|(<\/inp2:[^\>]+>)|(<inp2:[^\>]+\/>)/gi ) ;

FCKConfig.AutoDetectLanguage	= false ;

FCKConfig.IconImagesUrl =  'system/user_files/icons';

FCKConfig.ToolbarSets["Default"] = [
	['Cut','Copy','Paste','PasteText','PasteWord','-','NewPage','SelectAll','-','Find','Replace','-','Print','-','MyLink','Unlink','Anchor','Rule','-','MyImage','Flash','Document','Table','SpecialChar'],
	'/',
	['Bold','Italic','Underline','StrikeThrough','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','Outdent','Indent','-','Subscript','Superscript','-','TextColor','BGColor','-','Undo','Redo'],
	'/',
	['Style','FontName','FontSize','RemoveFormat','-','SpellCheck','-', 'MySource']
] ;

FCKConfig.ToolbarSets["Advanced"] = [
	['Cut','Copy','Paste','PasteText','PasteWord','-','NewPage','SelectAll','-','Find','Replace','-','Print','MyPreview','-','MyLink','Unlink','Anchor','Rule','-','MyImage','Flash','Document','Table','SpecialChar'],
	'/',
	['Bold','Italic','Underline','StrikeThrough','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','Outdent','Indent','-','Subscript','Superscript','-','TextColor','BGColor','-','Undo','Redo'],
	'/',
	['Style','FontName','FontSize','RemoveFormat','-','SpellCheck','-', 'MySource']
] ;

FCKConfig.EnterMode = 'br' ;		// p | div | br
FCKConfig.ShiftEnterMode = 'p' ;	// p | div | br

FCKConfig.Keystrokes = [
	[ CTRL + 65 /*A*/, true ],
	[ CTRL + 67 /*C*/, true ],
	[ CTRL + 70 /*F*/, true ],
	[ CTRL + 83 /*S*/, true ],
	[ CTRL + 84 /*T*/, true ],
	[ CTRL + 88 /*X*/, true ],
	[ CTRL + 86 /*V*/, 'Paste' ],
	[ CTRL + 45 /*INS*/, true ],
	[ SHIFT + 45 /*INS*/, 'Paste' ],
	[ CTRL + 88 /*X*/, 'Cut' ],
	[ SHIFT + 46 /*DEL*/, 'Cut' ],
	[ CTRL + 90 /*Z*/, 'Undo' ],
	[ CTRL + 89 /*Y*/, 'Redo' ],
	[ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
	[ CTRL + 76 /*L*/, 'Link' ],
	[ CTRL + 66 /*B*/, 'Bold' ],
	[ CTRL + 73 /*I*/, 'Italic' ],
	[ CTRL + 85 /*U*/, 'Underline' ],
	[ CTRL + SHIFT + 83 /*S*/, 'Save' ],
	[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ]
] ;

FCKConfig.ContextMenu = ['Generic','Anchor','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;

FCKConfig.FontNames		= 'Arial Narrow;Arial;Sans-Serif;Serif;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
FCKConfig.FontSizes		= 'xx-small;x-small;small;medium;large;x-large;xx-large' ;

FCKConfig.StylesXmlPath		= '../../inp_styles.xml'; // FCKConfig.EditorPath + 'fckstyles.xml' ;

// override all standart file browsers, but leave quick upload stuff from connector in place !!!
FCKConfig.LinkBrowserURL = FCKConfig.PageConfig.BaseUrl + 'admin/index.php?env=-browser/browser';
FCKConfig.ImageBrowserURL = FCKConfig.PageConfig.BaseUrl + 'admin/index.php?env=-browser/browser&type=Images';
FCKConfig.FlashBrowserURL = FCKConfig.PageConfig.BaseUrl + 'admin/index.php?env=-browser/browser&type=Flash';

// add ability to browse for documents
FCKConfig.DocumentsBrowser = true ;
FCKConfig.DocumentsBrowserURL = FCKConfig.PageConfig.BaseUrl + 'admin/index.php?env=-browser/browser&type=Documents';
FCKConfig.DocumentsBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	//70% ;
FCKConfig.DocumentsBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	//70% ;
