/** @page tinymceeditor Insert a TinyMce Edit Control
  1. If view class derrive EwAdminDetails:
  2. Into the method render() from view class use this: @code $this->_aViewData["editor"] = $this->_generateTextEditor( $iWidth, $iHeight, $oObject, $sField, $sStylesheet ); @endcode ...and into the template: @code [{ $editor }] @endcode and that's it. If you want to make custom initialization of TinyMce override the method protected function ewAdminDetails::_getTextEditor( $iWidth, $iHeight, $oObject, $sField, $sStylesheet ) in the child view class.
  3. If view class do not derrive EwAdminDetails:
  4. @code // include the config file and editor class: $sEditorPath = 'euroweb/TinyMceOxid'; $sEditorFile = getShopBasePath().$sEditorPath . '/TinyMceOxid.php'; // setting loaded state $this->_oEditor = false; if ( $sEditorFile && file_exists( $sEditorFile ) ) { include_once ($sEditorFile); // Create a new instance of the TinyMceOxid class: $this->_oEditor = new TinyMceOxid('/'.$sEditorPath); // set contents if ( $sEditObjectValue = $this->_getEditValue( $oObject, $sField ) ) { $this->_oEditor->setValue($sEditObjectValue); } // allowed image extensions $this->_oEditor->setAllowedImageExtensions('.jpg, .jpeg, .gif, .png'); $sCssUrl = getShopBasePath().$sEditorPath . '/content.css'; $this->_oEditor->setStylesheet( $sCssUrl ); } @endcode
*/