Getting CSS drop down to work

Last post 01-12-2007, 4:52 PM by urbanmike. 8 replies.
Sort Posts: Previous Next
  •  01-09-2007, 11:56 PM 25683

    Getting CSS drop down to work

    Hi
     
    I am having trouble getting the Css drop down functioning.  I have put a path in for the .css file below and I was presuming the asp would run through the class names i this file? I also saw some other info in regards to common.config file that could be edited but that sounds more like the .net version.
     
    Any help appreciated.
     
     
    Dim editor
        Set editor = New CuteEditor
        
        editor.ID = "ArticleName"
        editor.Text = rsArticleToEdit("ArticleName")
        editor.FilesPath = "/CuteEditor_Files"
        editor.ImageGalleryPath = "/newsadmin/Uploads/Images"
        editor.maxImageSize = 300
        editor.DocumentPath = "/newsadmin/Uploads/Documents"
        editor.maxDocumentSize = 2500
        editor.MediaPath = "/newsadmin/Uploads/Media"
        editor.maxMediaSize = 700
        editor.FlashPath = "/newsadmin/Uploads/Flash"
        editor.maxImageSize = 300
        editor.AutoConfigure = "None"
        editor.ThemeType="Office2003"
        editor.EditorBodyStyle = "font:normal 12px arial;"
        'editor.AutoConfigure = "EnableAll"
        'editor.Template= "Bold,Italic,Underline"
        editor.Width = 740
        editor.Height = 50
        editor.EditorWysiwygModeCss = "/newsadmin/generic.css"
        editor.Draw()
  •  01-10-2007, 10:34 AM 25693 in reply to 25683

    Re: Getting CSS drop down to work

    >> have put a path in for the .css file below and I was presuming the asp would run through the class names i this file?

    This feature is not supported in asp version yet. We will finish it in the next major release.

    http://cutesoft.net/asp/developer-guide/Class_dropdown_Customization.htm
     

    CSS Class dropdown Customization


    The CSS Class dropdown of CuteEditor displays a predefined set of CSS Classes. You can easily add your own CSS Classes using the following methods.
     

     

    1: Edit Dropdown Configuration file (Common.config).

    The dropdown configuration file (Common.config) can be found in the CuteEditor_Files/Configuration/Shared folder. In dropdown configuration file you can find the CssClass element which contains the configuration information for the CSS Class dropdown within Cute Editor.  

    You can modify the CssClass element to create your own CSS Classes list.

    Example:


    <
    CssClass>     

           <item text="[[NotSet]]" value="null"></item>

            <item text="Red Text" value="RedColor"></item>

          <item text="Highlight" value="Highlight"></item>

          <item text="Bold Green Text" value="BoldGreen"></item>

    </CssClass>

     

    Now the CSS Class dropdown contains "RedColor", "Highlight" and "BoldGreen".


     

     


    3: Programmatically populate the CSS Class dropdown

    Example:

    <%
           Dim editor
           Set editor = New CuteEditor
           editor.ID = "Editor1"
           
           'Programmatically populate the CSS Class dropdown. 
           editor.CssClassStyleDropDownMenuNames = "RedColor,Highlight,Bold Green Text"
           editor.CssClassStyleDropDownMenuList = "RedColor,Highlight,BoldGreen"
           editor.Text = "Hello World"
           editor.Draw()
    %>



    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

  •  01-10-2007, 4:03 PM 25699 in reply to 25693

    Re: Getting CSS drop down to work

    Thanks for the help.
     
    The first method I was unable to do as i do not have a folder CuteEditor_Files/Configuration/ or a file in the directories called common.config  As a licence holder am i able to get the latest version?
     
     
    The second option when putting in the code as below i get the following error.
     
     Error Message: Object doesn't support this property or method: 'CssClassStyleDropDownMenuNames'
     
     
     
     <%
    Dim editor
        Set editor = New CuteEditor
        
        editor.ID = "ArticleName"
        editor.Text = rsArticleToEdit("ArticleName")
        editor.FilesPath = "/CuteEditor_Files"
        editor.ImageGalleryPath = "/newsadmin/Uploads/Images"
        editor.maxImageSize = 300
        editor.DocumentPath = "/newsadmin/Uploads/Documents"
        editor.maxDocumentSize = 2500
        editor.MediaPath = "/newsadmin/Uploads/Media"
        editor.maxMediaSize = 700
        editor.FlashPath = "/newsadmin/Uploads/Flash"
        editor.maxImageSize = 300
        editor.AutoConfigure = "None"
        editor.ThemeType="Office2003"
        editor.EditorBodyStyle = "font:normal 12px arial;"
         'Programmatically populate the CSS Class dropdown. 
              editor.CssClassStyleDropDownMenuNames = "RedColor,Highlight,Bold Green Text"
              editor.CssClassStyleDropDownMenuList = "RedColor,Highlight,BoldGreen"
        'editor.AutoConfigure = "EnableAll"
        'editor.Template= "Bold,Italic,Underline"
        editor.Width = 740
        editor.Height = 50
        editor.EditorWysiwygModeCss = "/newsadmin/generic.css"
        editor.Draw()
    %>
  •  01-10-2007, 5:00 PM 25702 in reply to 25699

    Re: Getting CSS drop down to work

  •  01-10-2007, 9:59 PM 25704 in reply to 25702

    Re: Getting CSS drop down to work

    Hi
     
    I am not sure how to tell the version our company purchased the software but not sure they would have the version on record.
     
    Regards
  •  01-11-2007, 9:43 AM 25713 in reply to 25704

    Re: Getting CSS drop down to work

    urbanmike,
     
     
    Please set ShowVersion property to true.
     
    If your editor doesn't support this property, your editor version must be less than 5.
     
     
     
     

    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

  •  01-11-2007, 11:25 PM 25735 in reply to 25713

    Re: Getting CSS drop down to work

    I did a search for ShowVersion and could not find.
     
    Do you know how i upgrade to a later version?
     
    Cheers
     
    Mike
  •  01-12-2007, 12:08 AM 25736 in reply to 25735

    Re: Getting CSS drop down to work

  •  01-12-2007, 4:52 PM 25762 in reply to 25736

    Re: Getting CSS drop down to work

    Thanks again for the information.
     
    One more thing if i am going to upgrade i may look at moving to the .net version
     
    Is there any benefits of the .net version over classic asp that would make it a worthwhile migration.?
     
    Regards
View as RSS news feed in XML