| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @author Mambo Foundation Inc see README.php 5 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 8 * 9 * Redistributions of files must retain the above copyright notice. 10 * 11 * Mambo is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation; version 2 of the License. 14 */ 15 16 /** ensure this file is being included by a parent file */ 17 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 18 ?> 19 <script type="text/javascript"> 20 <!-- 21 /** Wrapper around the editor specific update function in JavaScript 22 */ 23 function updateEditorContents( editorName, newValue ) { 24 wp_send_to_html( 'editorName' ); 25 } 26 //--> 27 </script> 28 <?php 29 function initEditor() { 30 global $mosConfig_live_site; 31 } 32 33 function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) { 34 global $mosConfig_absolute_path; 35 36 $content = str_replace("<", "<", $content); 37 $content = str_replace(">", ">", $content); 38 $content = str_replace("&", "&", $content); 39 $content = str_replace(" ", " ", $content); 40 $content = str_replace(""", "\"", $content); 41 42 43 // include the config file and editor class: 44 include_once ($mosConfig_absolute_path.'/editor/wysiwygpro/config.php'); 45 include_once ($mosConfig_absolute_path.'/editor/wysiwygpro/editor_class.php'); 46 47 // create a new instance of the wysiwygPro class: 48 $name = new wysiwygPro(); 49 50 $name->set_name($hiddenField); 51 52 if ($hiddenField=='fulltext') { 53 $name->subsequent(true); 54 } 55 56 $name->usep(true); 57 58 // insert some HTML 59 $name->set_code($content); 60 61 // print the editor to the browser: 62 $name->print_editor('100%', intval($height)); 63 64 } 65 66 function getEditorContents( $editorArea, $hiddenField ) { 67 ?> 68 69 submit_form(); 70 71 <?php 72 } 73 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |