Changeset 4629


Ignore:
Timestamp:
Jan 6, 2010, 3:18:45 AM (14 years ago)
Author:
patdenice
Message:

[Plugin][FCK Editor]
Update to CKEditor v3.0.2
Add simple WYSIWYG editor to category edition, picture edition, NBM.
Still available for Additional Pages and PWG Stuffs.

Location:
extensions/FCKEditor
Files:
263 added
7 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/FCKEditor

    • Property svn:ignore set to
      editor
  • extensions/FCKEditor/language/es_ES/description.txt

    r4204 r4629  
    1 Editor de textoEditor de texto WYSIWYG para  Additional pages, PWG Stuffs
     1Editor de texto WYSIWYG.
  • extensions/FCKEditor/main.inc.php

    r3609 r4629  
    22/*
    33Plugin Name: FCK Editor
    4 Version: 2.0.a
     4Version: auto
    55Description: WYSIWYG editor.
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=264
     
    1515if (script_basename() == 'admin')
    1616{
    17   add_event_handler('loc_begin_page_header', 'load_fckeditor_script');
    18  
    19   function load_fckeditor_script()
    20   {
    21     global $page, $template, $sections;
    22    
    23     if (!isset($page['page']) or $page['page'] != 'plugin') return;
    24     $section = implode('/', $sections);
    25 
    26     // Additional pages
    27     if ($section == 'AdditionalPages/admin/add_page.php')
    28     {
    29       $area = 'ap_content';
    30     }
    31     // PWG Stuffs
    32     elseif ($section == 'PWG_Stuffs/admin/add_module.php' and $_GET['type'] == 'Personal')
    33     {
    34       $area = 'personal_content';
    35     }
    36     else return;
    37 
    38     $template->append('head_elements', '
    39 <script type="text/javascript" src="'.FCK_PATH.'/fckeditor.js"></script>
    40 <script type="text/javascript">
    41 window.onload = function()
    42 {
    43   var oFCKeditor = new FCKeditor( \''.$area.'\' ) ;
    44   oFCKeditor.BasePath = "'.FCK_PATH.'" ;
    45   oFCKeditor.Height = 400;
    46   oFCKeditor.Width = \'100%\';
    47   oFCKeditor.ReplaceTextarea() ;
     17  include(FCK_PATH.'fckeditor.php');
    4818}
    49 </script>');
    50   }
    51 }
    52 
    5319?>
Note: See TracChangeset for help on using the changeset viewer.