View of /mambo/branches/4.5.3h/editor/editor.htmlarea2.php
Parent Directory
|
Revision Log
Revision 1416 -
(download)
(annotate)
Fri Nov 23 12:01:17 2007 UTC (5 years, 5 months ago) by ocs_cms
File size: 1969 byte(s)
Fri Nov 23 12:01:17 2007 UTC (5 years, 5 months ago) by ocs_cms
File size: 1969 byte(s)
fixed header comment blocks to meet coding standards and to remove the invalid link to GNU/GPL version 2 license. Author and License references in the XML files replaced with mambo-foundation
<?php
/**
* @package Mambo
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* @license GNU/GPL Version 2, see LICENSE.php
* Mambo is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2 of the License.
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function initEditor() {
global $mosConfig_live_site;
?>
<script language="JavaScript1.2" type="text/JavaScript1.2">
<!--
_editor_url = '<?php echo $mosConfig_live_site; ?>/editor/htmlarea2/'; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else {
document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>');
}
/** Wrapper around the editor specific update function in JavaScript
*/
function updateEditorContents( editorName, newValue ) {
editor_setHTML( editorName, newValue );
}
//-->
</script>
<?php
}
function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) {
?>
<textarea name="<?php echo $hiddenField; ?>" id="<?php echo $hiddenField; ?>" cols="<?php echo $col; ?>" rows="<?php echo $row; ?>" style="width:<?php echo $width; ?>; height:<?php echo $height; ?>"><?php echo $content; ?></textarea>
<script language="JavaScript1.2" defer="defer">
<!--
editor_generate('<?php echo $hiddenField ?>');
//-->
</script>
<?php
}
function getEditorContents( $editorArea, $hiddenField ) {
}
?>| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

