Using external stylesheet styles with <p> and <div> tags

Last post 05-18-2006, 3:58 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  05-18-2006, 1:16 PM 19287

    Using external stylesheet styles with <p> and <div> tags

    Hello,
     
    We are using the latest version of the control, and we are having a problem loading style values into the Css Class dropdown for <p> and <div> element styles. Is it possible to have the editor read all styles from an external stylesheet and list, in the Css Class dropdown, the styles contained within the stylesheet, WITHOUT having to modify the common.config file?
     
    Thanks in advance
  •  05-18-2006, 1:24 PM 19290 in reply to 19287

    Re: Using external stylesheet styles with <p> and <div> tags

    cbw,
     
    Yes, you need to set Editor.AutoParseClasses Property to true.
     
    Editor.AutoParseClasses Property
    Specify whether or not the Cute Editor should automagically parse the CSS classes from EditorWysiwygModeCss and populate all items into CssClass dropdown.
     

     

    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

  •  05-18-2006, 3:43 PM 19304 in reply to 19290

    Re: Using external stylesheet styles with <p> and <div> tags

    Adam,
     
    We do have that value set to true when we instantiate the control.  Our problem is that none of the styles in the stylesheet that are designated as specifically <p> styles (i.e p.MyStyle) and block styles (i.e div.MyStyle) are appearing in the Css Styles dropdown.  Here's out scenario: We purchased the control to be used in a customizable application that we release to our clients.  Each client has their own set of styles that they use in conjunction with the CE control.  Because the control is compiled into our release code (we instantiate in a code-behind and set all properties and bindings in the code-behind), we cannot have multiple versions of the same dll in order to accomodate each client that we have and the different style requirements that vary from client to client.  We need to be able to ALWAYS, in any situation, point the control to a particular stylesheet (always the same name, always in the same location, but the contents of stylesheet are different per client), and have all the styles in the stylesheet appear in the Css Styles dropdown.  Do you have any suggestions, or is this not possible?
     
    Thanks,
     
    Chris
     
    P.S. please let me know if I have not been clear
  •  05-18-2006, 3:58 PM 19305 in reply to 19304

    Re: Using external stylesheet styles with <p> and <div> tags

    Chris,
     
    I thinks it's an easy work.
     
    Try:
     
    Editor1.AutoParseClasses =  true;
    Editor1.EditorWysiwygModeCss = "yourstylesheetPath";
     
    Does it work for you? If not, why?
     
     

    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

View as RSS news feed in XML