/* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License * (http://www.opensource.org/licenses/lgpl-license.php) * * For further information go to http://www.fredck.com/FCKeditor/ * or contact fckeditor@fredck.com. * * fck_config.js: Holds all configurations. * * Authors: * Frederico Caldeira Knabben (fckeditor@fredck.com) */ //## //## "config" is the global object that holds all configurations //## var config = new Object() ; //## //## Editor Base Path //## config.BasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1) ; //## //## Style File to be used the the editor //## config.EditorAreaCSS = config.BasePath + 'css/fck_editorarea.php' ; //## //## Base URL used to set relative links //## config.BaseUrl = document.location.protocol + '//' + document.location.host + '/' ; //## //## Enable XHTML support //## config.EnableXHTML = false ; config.EnableSourceXHTML = false ; //## //## Miscelaneous //## config.StartupShowBorders = false ; config.StartupShowDetails = false ; //## //## Cut and Paste options //## config.ForcePasteAsPlainText = false ; config.AutoDetectPasteFromWord = true ; config.ForceCleanPasteFromWord = false ; //## //## When the user presses inserts a
tag instead of a

//## config.UseBROnCarriageReturn = false ; //## Spaces ( ) to add on TAB config.TabSpaces = 4 ; //## //## Language settings //## config.AutoDetectLanguage = true ; config.DefaultLanguage = "en" ; // ## Spell Checker download - http://www.iespell.com/download.php config.SpellCheckerDownloadUrl = "http://www.rochen.com/ieSpellSetup201325.exe" ; config.SpellCheckerIeSpell = true ; config.SpellCheckerWord = true ; // ## Show the "Preview" command in the context menu. config.ShowPreviewContextMenu = true ; //## //## Sets the toolbar icons path //## config.ToolbarImagesPath = config.BasePath + "images/toolbar/default/" ; //config.ToolbarImagesPath = config.BasePath + "images/toolbar/office2003/" ; //## //## Toolbar Buttons Sets //## config.ToolbarSets = new Object() ; config.ToolbarSets["Default"] = [ ['EditSource','Save','NewPage','Preview','-','Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck','Find','Replace','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Link','RemoveLink','Anchor','-','Image','Table','Rule','SpecialChar','UniversalKey','Smiley','-','About'] , ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','InsertOrderedList','InsertUnorderedList','-','Outdent','Indent','-','ShowTableBorders','ShowDetails','-','Form','Checkbox','Radio','Input','Textarea','Select','Button','ImageButton','Hidden','-','Zoom'] , ['FontStyleAdv','-','FontStyle','-','FontFormat','-','Font','-','FontSize','-','TextColor','BGColor'] ] ; config.ToolbarSets["Source"] = [ ['EditSource'] ] ; config.ToolbarSets["Accessibility"] = [ ['EditSource','-','Cut','Copy','Paste','-','SelectAll','RemoveFormat','-','Link','RemoveLink','-','Image','Rule','-','About'] , ['FontStyle','-','Bold','Italic','Underline','-','InsertOrderedList','InsertUnorderedList','-','Undo','Redo'] ] ; config.ToolbarSets["Basic"] = [ ['Bold','Italic','-','InsertOrderedList','InsertUnorderedList','-','Link','RemoveLink','-','About'] ] ; config.ToolbarSets["ad"] = [['EditSource','Bold'],['SelectAll','RemoveFormat','Link','RemoveLink']]; config.ToolbarSets["mini"] = [['EditSource','Bold','Italic','Underline','SelectAll','RemoveFormat'],['FontStyle']]; config.ToolbarSets["midi"] = [['EditSource','Bold','Italic','Underline','SelectAll','RemoveFormat','Image','Link','RemoveLink'],['FontStyle','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull']]; config.ToolbarSets["maxi"] = [['EditSource','Bold','Italic','Underline','SelectAll','RemoveFormat','Image','Link','RemoveLink','InsertOrderedList','InsertUnorderedList'],['FontStyle','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull']]; //varia = "" //alert(varia); //x = location.search.substr(1); //var tmpArray = x.split('='); //document.write(tmpArray[3]); //alert(tmpArray); config.StyleNames = ';spalva;spalva_bold;spalva_italic;spalva_b_i;didis;didis_bold;didis_italic;table_melyna' config.StyleValues = ';spalva;spalva_bold;spalva_italic;spalva_b_i;didis;didis_bold;didis_italic;table_melyna' //## //## Style Names //## //config.StyleNames = ';Main Header;Blue Title;Centered Title' ; //config.StyleValues = ';MainHeader;BlueTitle;CenteredTitle' ; //## //## Table Auto Format Style //## config.TableStyleNames = ';Table Style 1 (Yellow);Table Style 2 (Yellow);Table Style 3 (Yellow);Table Style 4 (Blue)' ; config.TableStyleValues = ';1;2;3;4' ; //## //## Font Names //## config.ToolbarFontNames = ';Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; //## //## Link: Target Windows //## config.LinkShowTargets = true ; config.LinkTargets = '_blank;_parent;_self;_top' ; config.LinkDefaultTarget = '' ; //## //## Image Browsing //## config.ImageBrowser = true ; // Custom Page URL //config.ImageBrowserURL = config.BasePath + "filemanager/browse/sample_html/browse.html"; config.ImageBrowserURL = config.BasePath + "filemanager/browse/sample_php/browse.php?blockid=30"; // Image browsing window sizes config.ImageBrowserWindowWidth = 400 ; config.ImageBrowserWindowHeight = 250 ; //## //## Image Upload //## config.ImageUpload = true ; // Page that effectivelly upload the image. config.ImageUploadURL = config.BasePath + "filemanager/upload/php/upload.php?blockid=30" ; // Image upload window sizes config.ImageUploadWindowWidth = 300 ; config.ImageUploadWindowHeight = 150 ; config.ImageUploadAllowedExtensions = ".gif .jpg .jpeg .png" ; //## //## Link Browsing //## config.LinkBrowser = true ; // Custom Page URL config.LinkBrowserURL = config.BasePath + "filemanager/browse/sample_html/browsefile.php?blockid=30" ; // Link browsing window sizes config.LinkBrowserWindowWidth = 400 ; config.LinkBrowserWindowHeight = 250 ; //## //## Link Upload //## config.LinkUpload = true ; // Page that effectivelly upload the Link file. config.LinkUploadURL = config.BasePath + "filemanager/upload/php/upload_link.php?blockid=30" ; // Link upload window sizes config.LinkUploadWindowWidth = 300 ; config.LinkUploadWindowHeight = 150 ; config.LinkUploadAllowedExtensions = "*" ; // * or empty for all config.LinkUploadDeniedExtensions = ".exe .asp .php .aspx .js .cfm .dll" ; // empty for no one //## //## Smiley Dialog //## //config.SmileyPath = config.BasePath + "images/smiley/fun/" ; //config.SmileyImages = ["aiua.gif","ak.gif","alien.gif","alien2.gif","angry.gif","angry1.gif","apophys.gif","assjani.gif","asthanos.gif","bazuzeus.gif","beaute.gif","bigsmile.gif","blush.gif","boid.gif","bonk.gif","bored.gif","borg.gif","capo.gif","confused.gif","cool.gif","crazy.gif","cwm14.gif","demis_roussos.gif","devil.gif","devil2.gif","double0smile.gif","eek3.gif","eltaf.gif","gele.gif","halm.gif","happy.gif","icon12.gif","icon23.gif","icon26.gif","icon_angel.gif","icon_bandit.gif","icon_bravo.gif","icon_clown.gif","jesors.gif","jesors1.gif","lol3.gif","love.gif","mad.gif","megaphone.gif","mmm.gif","music.gif","notify.gif","nuts.gif","obanon.gif","ouaip.gif","pleure.gif","plugin.gif","question.gif","question2.gif","rasta2.gif","rastapop.gif","rosebud.gif","sad.gif","sad2.gif","shocked.gif","sick.gif","sick2.gif","slaap.gif","sleep.gif","smile.gif","smiley_peur.gif","sors.gif","sovxx.gif","spamafote.gif","tap67.gif","thumbdown.gif","thumbup.gif","tigi.gif","toad666.gif","tongue.gif","tuffgong.gif","urgeman.gif","vanadium.gif","wink.gif","worship.gif","wouaf.gif","wow.gif","xp1700.gif","yltype.gif","yopyopyop.gif","youpi.gif","zoor.gif"] ; config.SmileyPath = config.BasePath + "images/smiley/msn/" ; config.SmileyImages = ["regular_smile.gif","sad_smile.gif","wink_smile.gif","teeth_smile.gif","confused_smile.gif","tounge_smile.gif","embaressed_smile.gif","omg_smile.gif","whatchutalkingabout_smile.gif","angry_smile.gif","angel_smile.gif","shades_smile.gif","devil_smile.gif","cry_smile.gif","lightbulb.gif","thumbs_down.gif","thumbs_up.gif","heart.gif","broken_heart.gif","kiss.gif","envelope.gif"] ; config.SmileyColumns = 7 ; config.SmileyWindowWidth = 500 ; config.SmileyWindowHeight = 200 ;