Missing Class List

Last post 07-14-2005, 4:29 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  07-14-2005, 12:34 PM 8716

    Missing Class List

    I cannot get the class list to populate.  The configuration path is set to myUser.config (path omitted) and all tools appear as expected including the changes to the FormatBlock.  However, the css class list is empty.

    Thanks for the help
    ROB

    I have my AutoConfigure/myUser.config file to include
            <item type="dropdown" name="CssClass" RenderItemBorder="true" text="[[CssClass]]" command="CssClass" />
    In the Shared/Common.config
            <CssClass>
                <item text="[[NotSet]]" value="null"></item>
                <item text="Red Text" value="RedColor">
                    <html><![CDATA[<span style='color:red'>RedColor</span>]]></html>
                </item>
                <item text="Highlight" value="Highlight">
                    <html><![CDATA[<span style='background-color: yellow'>Highlight</span>]]></html>
                </item>
                <item text="Bold Green Text" value="BoldGreen">
                    <html><![CDATA[<span style='color: green; font-weight: bold;'>Bold Green Text</span>]]></html>
                </item>
            </CssClass>
            <CssStyle>
                <item text="[[NotSet]]" value="null"></item>
                <item text="font-size:18pt" value="font-size:18pt"></item>
                <item text="color:red" value="color:red"></item>
                <item text="border:1px red solid" value="border:1px red solid"></item>
                <!--<item text="filter:alpha(opacity=20)">filter:alpha(opacity=20)</item> -->
            </CssStyle>


  •  07-14-2005, 4:29 PM 8730 in reply to 8716

    Re: Missing Class List

    ROB,
     
    You should Edit Dropdown Configuration file (Common.config).

    The dropdown configuration file (Common.config) can be found in the /CuteEditor/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.

    <dropdowns> <CssClass> <item text="[[NotSet]]" value="null"></item> <item text="Red Text" value="RedColor"> <html><![CDATA[<span style='color:red'>RedColor</span>]]></html> </item> <item text="Highlight" value="Highlight"> <html><![CDATA[<span style='background-color: yellow'>Highlight</span>]]></html> </item> <item text="Bold Green Text" value="BoldGreen"> <html><![CDATA[<span style='color: green; font-weight: bold;'>Bold Green Text</span>]]></html> </item> </CssClass> </dropdowns>

    You also need to set Editor.AutoParseClasses Property to false.

    Otherwise Cute Editor will 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

View as RSS news feed in XML