Failed to load menus

Last post 10-06-2008, 4:43 AM by TonyX. 2 replies.
Sort Posts: Previous Next
  •  10-05-2008, 3:55 PM 44580

    Failed to load menus

    Hi,
     
    When using my own config file, the message "Failed to load menus" appears when opening the editor.
     
    The path is set:
    $editor->ConfigurationPath = "/forum/CuteEditor_Files/Configuration/AutoConfigure/my.config";
     
    and the auto configure setting:
    $editor->AutoConfigure="my";
     
    When using some of the default config files, for example "Full" there is no problem.

    ????????????????????
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
  •  10-06-2008, 2:14 AM 44598 in reply to 44580

    Re: Failed to load menus

    Step 1: Create a new configuration file and name it "mytools.config".

     

    Open the configuration file and copy/paste the code below, save it to
    CuteEditor_Files/Configuration folder. 

     

    <?xml version="1.0" encoding="utf-8" ?>
    <
    configuration>
    <contextmenu>
        <item name="Editing" value="False" />
        <item name="Format" value="False" />
        <item name="Insert" value="False" />
        <item name="InsertAdvanced" v alue="False" />
        <item name="InsertFiles" value="False" />
        <item name="InsertForms" value="False" />
        <item name="Relative" value="False" />
        <item name="Tags" value="False" />
        <item name="Verbs" value="False" />
    </contextmenu>

    <toolbars>
        <item type="g_start" />
        <item type="image" name="Save" postback="True" />
        <item type="image" name="Bold" />
        <item type="image" name="Italic" />
        <item type="image" name="Underline" imagename="under" />
        <item type="separator" />
        <item type="image" name="JustifyLeft" imagename="left" />
        <item type="image" name="JustifyCenter" imagename="center" />
        <item type="image" name="JustifyRight" imagename="right" />
        <item type="holder" name="insertcustombutonhere" />
        <item type="g_end" />
    </toolbars>
    </
    configuration >

    Step 2: Set the editor

    In the CE setting,you need to set the use the ConfigurationPath to specify the path of your custom configuration file.

    For example:

     

    Example Code

    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->FilesPath="CuteEditor_Files";
             //specify the path of your custom configuration file
             $editor->ConfigurationPath="/CuteEditor_Files/Configuration/myTools.config";
             $editor->Draw();
             $editor=null; 

             //use $_POST["Editor1"]to catch the data
    ?>

     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-06-2008, 4:43 AM 44604 in reply to 44598

    Re: Failed to load menus

    ok, you can choose any name you like, as long you put the file in the Configuration directory.
     
    Strange thing though, in the Configuration/AutoConfigure directory there are by default a MyTool.config file, and when calling that the error message also appears. Maybe you should remove that file.
View as RSS news feed in XML