multiple editors for template based CMS

Last post 05-12-2011, 9:20 AM by jmarcv. 2 replies.
Sort Posts: Previous Next
  •  05-11-2011, 5:46 PM 67546

    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?
  •  05-11-2011, 8:44 PM 67548 in reply to 67546

    Re: multiple editors for template based CMS

    Hi jmarcv,
     
    Is your site online? If so, can you send me the test page url and show me the steps to reproduce this issue? I will check it and get back to you as soon as possible.
     
    Regards,
     
    Ken
  •  05-12-2011, 9:20 AM 67552 in reply to 67548

    Re: multiple editors for template based CMS

    In the process of creating a condensed script, it appears to work, so I need to see what in our site is interfering.  There is no problem in my example when isolated.
     
    Thanks.
View as RSS news feed in XML