Changeset 4629
- Timestamp:
- Jan 6, 2010, 3:18:45 AM (14 years ago)
- Location:
- extensions/FCKEditor
- Files:
-
- 263 added
- 7 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/FCKEditor
-
Property
svn:ignore
set to
editor
-
Property
svn:ignore
set to
-
extensions/FCKEditor/language/es_ES/description.txt
r4204 r4629 1 Editor de texto Editor de texto WYSIWYG para Additional pages, PWG Stuffs1 Editor de texto WYSIWYG. -
extensions/FCKEditor/main.inc.php
r3609 r4629 2 2 /* 3 3 Plugin Name: FCK Editor 4 Version: 2.0.a4 Version: auto 5 5 Description: WYSIWYG editor. 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=264 … … 15 15 if (script_basename() == 'admin') 16 16 { 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'); 48 18 } 49 </script>');50 }51 }52 53 19 ?>
Note: See TracChangeset
for help on using the changeset viewer.