[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_ext/fckeditor/ -> fckeditor_config.js.php (source)

   1  <?php
   2  
   3  // The base file for implementing 
   4  // a custom FCKeditor config
   5  // optimized for phpwcms
   6  $phpwcms = array();
   7  $_root = rtrim( str_replace("\\", '/', dirname(dirname(dirname(dirname(__FILE__)))) ), '/' );
   8  
   9  // send correct content-type/mime-type
  10  define('CUSTOM_CONTENT_TYPE', 'Content-Type: application/x-javascript');
  11  
  12  require_once ($_root.'/config/phpwcms/conf.inc.php');
  13  require_once  ($_root.'/include/inc_lib/default.inc.php');
  14  
  15  
  16  ?>
  17  FCKConfig.BaseHref = '<?php echo PHPWCMS_URL ?>' ;
  18  FCKConfig.ProcessHTMLEntities    = <?php echo (PHPWCMS_CHARSET != 'iso-8859-1' && PHPWCMS_CHARSET != 'iso-8859-15') ? 'false' : 'true' ?> ;
  19  FCKConfig.Plugins.Add( 'autogrow' );
  20  FCKConfig.AutoGrowMax = 500;
  21  
  22  // default FCKeditor toolbars, but removed unnecessary buttons
  23  FCKConfig.ToolbarSets["Default"] = [
  24  
  25      ['Source','Preview','-','Templates'],
  26  
  27      ['Cut','Copy','Paste','PasteText','PasteWord'],
  28  
  29      ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  30  
  31      ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
  32      '/',
  33      ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
  34      ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
  35      ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  36      ['Link','Unlink','Anchor'],
  37      ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
  38      '/',
  39      ['Style','FontFormat','FontName','FontSize'],
  40      ['TextColor','BGColor'],
  41      ['FitWindow','ShowBlocks','-','About']        // No comma for the last row.
  42  ] ;
  43  
  44  FCKConfig.ToolbarSets["Basic"] = [
  45      ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
  46  ] ;
  47  
  48  // an optimized FCKeditor Toolbar for phpwcms
  49  FCKConfig.ToolbarSets["phpwcms_default"] = [
  50      ['Source','FitWindow','Preview','ShowBlocks','-','Templates'],
  51      ['Cut','Copy','Paste','PasteText','PasteWord'],
  52      ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  53      ['About'],
  54      '/',
  55      ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-',
  56      'TextColor','BGColor','-',
  57      'OrderedList','UnorderedList','Outdent','Indent','-',
  58      'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Blockquote','CreateDiv'],
  59      ['Link','Unlink','Anchor'],
  60      ['Rule','Image','Flash','Table','SpecialChar'],
  61      ['Style'],
  62      '/',
  63      ['FontFormat','FontName','FontSize']
  64  ] ;
  65  
  66  // a minimized FCKeditor Toolbar for phpwcms
  67  FCKConfig.ToolbarSets["phpwcms_basic"] = [
  68      ['Bold','Italic','Underline','OrderedList','UnorderedList','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Link','Unlink','TextColor','BGColor','Image'],
  69      ['FitWindow','Source']
  70  ] ;
  71  
  72  <?php
  73  
  74      // enhancement for phpwcms filebrowser support
  75      // based on concept and work of Markus Köhl <www.pagewerkstatt.ch> (Sept. 2009)
  76  
  77      if(!empty($phpwcms['FCK_FileBrowser'])) {
  78  
  79  ?>
  80  FCKConfig.LinkBrowserURL = '<?php echo PHPWCMS_URL ?>filebrowser.php?opt=10';
  81  FCKConfig.LinkBrowserWindowWidth    = 380;
  82  FCKConfig.ImageBrowserURL = '<?php echo PHPWCMS_URL ?>filebrowser.php?opt=11';
  83  FCKConfig.ImageBrowserWindowWidth  = 380;
  84  FCKConfig.FlashBrowserURL = '<?php echo PHPWCMS_URL ?>filebrowser.php?opt=10';
  85  FCKConfig.FlashBrowserWindowWidth  = 380;
  86  
  87  <?php    }    ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7