Support forums

Live Support, Chat and HTML Editor
    
Welcome to Support forums Sign in | Join | Help Messenger
in Search

Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

Last post 05-22-2008, 6:19 PM by SavageAnne. 6 replies.
Sort Posts: Previous Next
  •  05-15-2008, 11:56 AM 40422

    Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

    Just upgraded from 5.2 to 6.0.  If I use a custom name for my config file, I get an alert "Failed to Load Menus" when the control loads.  Note that it's not the content of the file that causes the error, it's the NAME of the file that seems to be the problem. 
     
    My code was editor.AutoConfigure = "asid" and my config file was asid.config, this generated the error.
     
    After a bunch of tests I figured out that i I rename my asid.config to simple.config (or one of the other standard cofigs) and change the code match it works fine.
     
    I can certainly just name my file simple.config, but it's confusing, and I'd rather use my own name.  Can you help?
     
    Also, in 5.2 somehow I changed the default display so it didn't say "css class" but rather some custom text.  I can't figure out how to do that in 6.0 (or even how I did it in 5.2 for that matter).  Here's a link to a sample page showing the custom display text.  http://www.scientificinquiry.org/samplehelp.asp  Can you help with that as well?
  •  05-20-2008, 10:45 PM 40597 in reply to 40422

    Re: Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

    editor.AutoConfigure = filename, the file name should be the built-in configuration file under \CuteEditor_Files\Configuration\AutoConfigure folder. To use your own button configration file, you need to set ConfigurationPath property in CuteEditor class.

    Example Code

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               'specify the path of your custom configuration file
               editor.ConfigurationPath = "/asp/CuteEditor_Files/Configuration/myTools.config"
               editor.Text = "Hello World"
               editor.Draw()
          %>

  •  05-21-2008, 3:01 PM 40648 in reply to 40597

    Re: Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

    Thanks.  That did the trick.  Can you help with the second part of my question?  Here it is again ...
     
    Also, in 5.2 somehow I changed the default display so it didn't say "css class" but rather some custom text.  I can't figure out how to do that in 6.0 (or even how I did it in 5.2 for that matter).  Here's a link to a sample page showing the custom display text.  http://www.scientificinquiry.org/samplehelp.asp  Can you help with that as well?
     
    Thanks.
  •  05-21-2008, 4:36 PM 40650 in reply to 40648

    Re: Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

    In your menu configuration file, for example \CuteSoft_Client\CuteEditor\Configuration\AutoConfigure\default.config

    <item type="dropdown" name="CssClass" width="70" RenderItemBorder="true" text="[[CssClass]]"
       command="CssClass" />
      <item type="dropdown" name="CssStyle" width="70" RenderItemBorder="true" text="[[CssStyle]]"
     command="CssStyle" />
     
    The text in red is the name shown in CSS Dropdown list
  •  05-21-2008, 7:13 PM 40651 in reply to 40650

    Re: Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

    Here's what I have in my config file:
     
    <item type="dropdown" name="CssClass" width="90" RenderItemBorder="true" text="[[ACASE Help Formats]]" command="CssClass" />
     
    I know it's the right config file because I changed the width to 90 and was able to see the drop down get wider, but the text doesn't change.  Any suggestions?
      
  •  05-22-2008, 4:25 PM 40683 in reply to 40651

    Re: Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

    Sorry for the mis-leading. V6 has some changes and the way mentioned in my last post is for v5 :)
     
    In v6, this name is saved in language file \CuteSoft_Client\CuteEditor\Languages. If your culture is set to English, then en-us. If not set, it's default.xml. In the language file, search for "CSS Class", change the definition there
    <resource name="CssClass">Css Class</resource>
  •  05-22-2008, 6:19 PM 40686 in reply to 40683

    Re: Custom config file name generates Failed to Load Menus and how to change "css class" to custom text.

    OK, that did the trick, although the default language file was en-en not en-US.   Once I figured that out it worked fine.
View as RSS news feed in XML