5
           
            
                
     
    
    frankblack, your version is very good. 
I work to include this in a new version of wf channel and it's a very good work. 
I have just one 'problem'
When I use the FCK editor I can include the editor in a linebreak when I call it from the xoopsform class.
When i use inbetween (or other WYSIWYG editor) it can't work properly. An idea ?
ex for FCK : 
 case 'fck' : 
            if ( is_readable(XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/admin/fckeditor/fckeditor.php'))    { 
                    $fckeditor_root = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/admin/fckeditor/'; 
                    include XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/admin/fckeditor/fckeditor.php'; 
                    ob_start(); 
                    $oFCKeditor = new FCKeditor('page') ; 
                    $oFCKeditor->BasePath    = XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/admin/fckeditor/' ; 
                    $oFCKeditor->Value        = $page ; 
                    $oFCKeditor->Height        = 500 ; 
                    $oFCKeditor->Width        = '99%'; 
                    $oFCKeditor->Create() ; 
          $sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3'); 
                    $sform-> insertBreak(ob_get_contents(), 1); 
                    ob_end_clean(); 
                } else { 
        $sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3'); 
                $sform-> addElement(new XoopsFormDhtmlTextArea($caption, 'page', $page, 20, 60));     
                } 
        break;  
and so the editor is in full width mode.
I can't do this for the other editor :
 case 'inbetween' : 
              if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/inbetween/forminbetweentextarea.php"))    { 
                include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/inbetween/forminbetweentextarea.php"); 
        $sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3'); 
                $sform-> addElement(new XoopsFormInbetweenTextArea(array('caption'=>$caption, 'name'=>'page', 'value'=>$page, 'width'=>'100%', 'height'=>'400px'))); 
            } else { 
        $sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3'); 
                $sform-> addElement(new XoopsFormDhtmlTextArea($caption, 'page', $page, 20, 60));     
                } 
        break;  
any Idea ???
    
         
  - - 
