multiple editors for template based CMS

  •  05-11-2011, 5:46 PM

    multiple editors for template based CMS

    Since the Draw method immediatly outputs editor code, it makes it toughh to put the code in a var for template replacement.
    I have tried something like this, as well as a lot of other kludges....

     
     
          ob_start();
           $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->URLType="Absolute";
             $editor->Draw();
             $editor=null; 

        $TXTBOX.=   ob_get_contents();
        ob_end_clean();
       ob_start();
           $editor=new CuteEditor();
             $editor->ID="Editor2";
             $editor->Text="Type here";
             $editor->URLType="Absolute";
             $editor->Draw();
             $editor=null; 

        $TXTBOX.=   ob_get_contents();
        ob_end_clean();

     
    When I do, only the LAST editor (Editor2) has a toolbar.
     
     
    Any suggestions?
View Complete Thread