﻿//----------------------------------------------------------------------------------------
// pinEdit global settings
//----------------------------------------------------------------------------------------

// select design
var design = "Office2003"; // ""             Standard like Office 2000
                           // "Office"
                           // "Office2003"   Like Office 2003
                           // This string corresponds with the last characters of the
                           // stylesheet rules in editor/design/style/pinEdit.css

// set language
var language = "DE";       // supported
                           // EN = english
                           // DE = german
                           // ES = spanish
                           // PT = Portugese
                           // GR = greek
                           // NL = dutch
                           // HE = hebrew


// set target file, where html content is posted
// enter here your file with absolute or relative path
// in relativ mode, the location must be relativ to 'editor' directory
var target = "adapter/saveadapter.aspx";


// set target file, that is called to load or save text modules
// enter here your file with absolute or relative path
// in relativ mode, the location must be relativ to 'editor' directory
// implemented only for Java and .Net
var targetTextModule = "";


// set target file, that is called to get intellisense data
// enter here your file with absolute or relative path
// in relativ mode, the location must be relativ to 'editor' directory
// implemented only for Java and .Net
var targetIntellisense = "adapter/intellisenseadapter.aspx";


// key code for intellisense ("" if disabled)
var globalISKey = "";

// defines, what is visible in HTML mode
var globalHTMLMode = "1";
                      // 1 = Standard ( editing the html body )
                      // 2 = Extended ( editing the entire document -> head and body)

// set the document directory within the web root(this directory is displayed when you open documents via dialog)
var globalDocDir       = "data/files"


// set the image directory within the web root(this directory is displayed when you open images via dialog)
var globalImageDir     = "data/images"


// select technology for dialog functions like open/save dialog
var globalTechnology   = "asp"; // supported
                                // asp - use server side asp technology
                                // jsp - use server side jsp technology
                                // php - use server side PHP technology


// these values are set dynamically during startup dependant of design
// global toolbar background color for all toolbars
var globalToolbarColor = "ButtonFace";

// global toolbar background color for all toolbars
var globalToolbarBorder = true;


/*----------------------------------*/
/*      NEW in 3.0                  */
/*----------------------------------*/
// defines the save mode
// 0 = Absolute All HTML
// 1 = Absolute Body HTML
// 2 = Relative All HTML
// 3 = Relative Body HTML
// 4 = XHTML
// 5 = XHtml Body
var globalSaveMode = 0;

// if set, the function editGetHtmlRel()/editGetHtmlBodyRel() returns content with all images/href path relative to given path
// ie. http://www.myweb.com/mysite/
// needed for globalSaveMode=2 or 3
var globalImagePathRelative = ""; 
var globalLinkPathRelative  = ""; 

// defines the popup width
var globalPopupWidth = 200;

// defines if after a RETURN a <br> or a paragraph is inserted
var globalIsBR = false; // enter <p>

// colors for syntax highlighting
var globalTagColor       = "#0000ff";
var globalTagNameColor   = "#800000";
var globalAttributeColor = "red";
var globalStyleColor     = "#0000ff";

// if true, the language is automatically detected
var globalLanguageDetect = true;

// the extended mode has syntax coloring
var globalHTMLModeExtended = true;

// the toolbar status is updated when a key is pressed
var globalUpdateToolbarWithKey = true;

/*----------------------------------*/
/*      NEW in 3.5                  */
/*----------------------------------*/
// if set to true, Control-V is disabled and an event occurs in config_event.js
var globalControlVDisabled = false;

// highligh color for table highlighting
var globalHighlightColor = "#FF0000";


// specifies the location of the image folder anywhere on the server
// the folder must be accessable by a valid URL
// these settings are also used for image upload
var globalImageUrlAbsolute     = "";
var globalImagePathAbsolute    = "";

// specifies the location of the document folder anywhere on the server
// the folder must be accessable by a valid URL
// these settings are also used for doc upload
var globalDocumentUrlAbsolute     = ""; 
var globalDocumentPathAbsolute    = ""; 

// specifies the location of the template folder anywhere on the server
// the folder must be accessable by a valid URL
var globalTemplateUrlAbsolute     = "";
var globalTemplatePathAbsolute    = "";

// if tb parameter is used (Toolbar auto config)
var globalToolbarHeight      = 27;
// sets focus to editor after editWrite
var globalAutoFocus          = true;
// the doc type for XHTML
var globalXHtmlDocType = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

// this content is passed in variable "custom" to the save adapter
var globalSaveValue = "";

// URL of root (context). Can be http://www.mydomain.com/
// Must end with /
var globalRootUrl  = "";
// physical path of root (context)
var globalRootPath = "";

// URL of editor folder: Must be in the same domain as the files that are opened per URL
// Must end with /
// If not specified the editor folder must be in web application root
var globalEditorUrl = ""; 

// filter (file extensions) for dialogs for mode OPEN, IMAGE, LINK
var globalDialogFilterDoc   = "html;htm;txt;";
var globalDialogFilterImage = "gif;jpeg;jpg;png;";
var globalDialogFilterLink  = "html;htm;txt;doc;pdf;"; 

// if color is set then an non editable region is colored
var globalEditableColor = "#c0c0c0";

// defines the spell checker page - please set the complete URL
var globalSpellPage = "spell/pinSpell.aspx";

// creates pretty format in HTML view
var globalPrettyFormat = true;

// the first row of the inserted table is a <hr>
var globalFirstTableRowIsHeader = true;

// Needed for XP SP2 to increase height of dialogs
var globalDialogOffset = 0;

// defines if pinToolbar is used or not
var globalSingleMode = false;

// hierarchy bar parameter
var globalHierarchyBarVisible = false;
var globalHierarchyBarSelectionColor = "#FFFFA0";
var globalHierarchyBarHighlight = true;


// debug flag
var globalDebug = true;


