View of /mambo/branches/4.6/editor/editor.wysiwygpro.php
Parent Directory
|
Revision Log
Revision 297 -
(download)
(annotate)
Thu Feb 16 21:43:38 2006 UTC (7 years, 3 months ago) by csouza
File size: 1828 byte(s)
Thu Feb 16 21:43:38 2006 UTC (7 years, 3 months ago) by csouza
File size: 1828 byte(s)
replacement of copyright notices
<?php /** * @package Mambo Open Source * @copyright (C) 2005 - 2006 Mambo Foundation Inc. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * * Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure * that Mambo remained free Open Source software owned and managed by the community. * Mambo is Free Software */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?> <script type="text/javascript"> <!-- /** Wrapper around the editor specific update function in JavaScript */ function updateEditorContents( editorName, newValue ) { wp_send_to_html( 'editorName' ); } //--> </script> <?php function initEditor() { global $mosConfig_live_site; } function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) { global $mosConfig_absolute_path; $content = str_replace("<", "<", $content); $content = str_replace(">", ">", $content); $content = str_replace("&", "&", $content); $content = str_replace(" ", " ", $content); $content = str_replace(""", "\"", $content); // include the config file and editor class: include_once ($mosConfig_absolute_path.'/editor/wysiwygpro/config.php'); include_once ($mosConfig_absolute_path.'/editor/wysiwygpro/editor_class.php'); // create a new instance of the wysiwygPro class: $name = new wysiwygPro(); $name->set_name($hiddenField); if ($hiddenField=='fulltext') { $name->subsequent(true); } $name->usep(true); // insert some HTML $name->set_code($content); // print the editor to the browser: $name->print_editor('100%', intval($height)); } function getEditorContents( $editorArea, $hiddenField ) { ?> submit_form(); <?php } ?>
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

