Re: Error message on load

  •  09-05-2008, 1:17 PM

    Re: Error message on load

    That page produces no error.  I tried creating a custom menu bar, I guess maybe that's what caused the error.  Can someone see if there is an error in the menu bar code?  I've placed it in the AutoConfigure folder.
     
    Thanks,
    -David
     
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <codeviewToolbars>
      <item type="g_start" />
      <item type="image" name="Save" postback="True" />
      <item type="image" name="Print" />
      <item type="image" name="Find" />
      <item type="image" name="ToFullPage" command="FullPage" imagename="fit" hotkey="F12" />
      <item type="image" name="FromFullPage" command="FullPage" imagename="restore" hotkey="F12" />
      <item type="image" name="Cut" />
      <item type="image" name="Copy" />
      <item type="image" name="Paste" />
      <item type="image" name="SelectAll" />
      <item type="image" name="SelectNone" />
      <item type="g_end" />
     </codeviewToolbars>
     <toolbars>
      <item type="g_start" />
      <item type="dropdown" name="CssClass" width="70" RenderItemBorder="true" text="[[CssClass]]"
       command="CssClass" />
      <item type="dropdown" name="FormatBlock" width="70" RenderItemBorder="true" text="[[Paragraph]]"
       command="FormatBlock" />
      <item type="dropdown" name="FontName" width="110" text="[[FontName]]" command="FontName" />
      <item type="dropdown" name="FontSize" width="40" text="[[FontSize]]" command="FontSize" />
      <item type="g_end" />  
      <item type="g_start" />
      <item type="image" name="CleanCode" imagename="cleanup" />
      <item type="image" name="NetSpell" imagename="spell" />
      <item type="image" name="Cut" />
      <item type="image" name="Copy" />
      <!-- groups are defined in Shared/Common.config -->
      <item type="image" name="Paste" />
      <item type="separator" />
      <item type="image" name="Undo" />
      <item type="image" name="Redo" />
      <item type="g_end" />
    <!--  <item type="g_start" />
      <item type="image" name="Break" />
      <item type="image" name="InsertParagraph" imagename="Paragraph" />
      <item type="separator" />
      <item type="image" name="Help" />  
      <item type="g_end" />-->
      <item type="linebreak"/>
      <item type="g_start" />
      <item type="image" name="Bold" />
      <item type="image" name="Italic" />
      <item type="image" name="Underline" imagename="under" />
      <item type="image" name="JustifyLeft" imagename="left" />
      <item type="image" name="JustifyCenter" imagename="center" />
      <item type="image" name="JustifyRight" imagename="right" />
      <item type="image" name="RemoveFormat" imagename="unformat" />
      <item type="forecolor" />
      <item type="backcolor" />
      <item type="g_end" />
      <item type="g_start" />
      <item type="image" name="InsertOrderedList" imagename="numlist" />
      <item type="image" name="InsertUnorderedList" imagename="bullist" />
      <item type="image" name="Indent" />
      <item type="image" name="Outdent" />
      <item type="g_end" />
      <item type="g_start" />
      <item type="image" name="InsertLink" imagename="link" />
      <item type="image" name="Unlink" />
      <item type="holder" name="insertcustombutonhere" />
      <item type="g_end" />  
     </toolbars>
    </configuration>
     
    Also I'm loading it like this:
    $cEditor = new CuteEditor();
    $cEditor->ID = 'phNotes';
    $cEditor->AutoConfigure = CoachFlex;
    $cEditor->FilesPath = "core/CuteEditor_Files";
    $cEditor->ShowCodeViewToolBar = false;
    $cEditor->ThemeType = "Office2003_BlueTheme";
    //$cEditor->ThemeType = "Office2000";
    $cEditor->UseFontTags=false;
    $cEditor->Width = "100%";
    $cEditor->EditorOnPaste = "PastePureText";
    $cEditor->EditorBodyStyle = "font: normal 0.75em Arial;";
    $cEditor->BreakElement="Br";
    $cEditor->EnableStripScriptTags=true;
    $cEditor->ShowPreviewMode = false;
    $cEditor->ShowTagSelecter = false;
    $cEditor->Draw();
    $cEditor = null;
View Complete Thread