[ Index ]
 

Code source de Seagull 0.6.1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/js/ -> SglTinyFckConfig.js (source)

   1  
   2      tinyMCE.init({
   3      mode : "textareas",
   4      editor_selector : "wysiwyg",
   5      theme : "advanced",
   6      plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,paste,directionality,fullscreen,noneditable,contextmenu",
   7      theme_advanced_buttons1_add_before : "save,newdocument,separator",
   8      theme_advanced_buttons1_add : "fontselect,fontsizeselect",
   9      theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor,liststyle",
  10      theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
  11      theme_advanced_buttons3_add_before : "tablecontrols,separator",
  12      theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
  13      theme_advanced_toolbar_location : "top",
  14      theme_advanced_toolbar_align : "left",
  15      theme_advanced_statusbar_location : "bottom",
  16      plugin_insertdate_dateFormat : "%Y-%m-%d",
  17      plugin_insertdate_timeFormat : "%H:%M:%S",
  18      extended_valid_elements : "hr[class|width|size|noshade]",
  19      file_browser_callback : "fileBrowserCallBack",
  20      paste_use_dialog : false,
  21      theme_advanced_resizing : true,
  22      apply_source_formatting : true,
  23      document_base_url : SGL_JS_WEBROOT + "/index.php",
  24      remove_script_host : true,
  25      relative_urls: false,
  26      width : "100%",
  27      external_image_list_url : "."
  28  });
  29  
  30  function fileBrowserCallBack(field_name, url, type, win)
  31  {
  32      var connector = SGL_JS_WEBROOT + "/tinyfck/filemanager/browser.html?Connector=connectors/php/connector.php";
  33      var enableAutoTypeSelection = true;
  34  
  35      var cType;
  36      tinyfck_field = field_name;
  37      tinyfck = win;
  38  
  39      switch (type) {
  40      case "image":
  41          cType = "Image";
  42          break;
  43      case "flash":
  44          cType = "Flash";
  45          break;
  46      case "file":
  47          cType = "File";
  48          break;
  49      }
  50  
  51      if (enableAutoTypeSelection && cType) {
  52          connector += "&Type=" + cType;
  53      }
  54  
  55      window.open(connector, "tinyfck", "modal,width=600,height=400");
  56  }
  57  


Généré le : Fri Mar 30 01:27:52 2007 par Balluche grâce à PHPXref 0.7