[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/editor/ -> editor.xstandard.php (source)

   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      //TODO: correct call
  25  }
  26  //-->
  27  </script>
  28  <?php
  29  
  30  function initEditor() {
  31  }
  32  
  33  function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) {
  34  ?>
  35  <object classid="clsid:0EED7206-1661-11D7-84A3-00606744831D" id="<?php echo $name; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
  36  <param name="Value" value="<?php echo $content; ?>" />
  37  </object>
  38  <input type="hidden" name="<?php echo $hiddenField; ?>" id="<?php echo $hiddenField; ?>" value="" />
  39  <?php
  40  }
  41  
  42  function getEditorContents( $editorArea, $hiddenfield ) {
  43  ?>
  44      document.getElementById('<?php echo $editorArea ; ?>').EscapeUNICODE = true;
  45      document.getElementById('<?php echo $hiddenfield ; ?>').value = document.getElementById('<?php echo $editorArea ; ?>').value;
  46  <?php
  47  }
  48  ?>