Configuring CuteEditor in an ASP.NET 2.0 Beta 2 .skin file.

Last post 09-09-2005, 11:26 AM by JFBunch. 1 replies.
Sort Posts: Previous Next
  •  09-06-2005, 10:40 AM 10169

    Configuring CuteEditor in an ASP.NET 2.0 Beta 2 .skin file.

    I am using ASP.NET 2.0 Beta 2, and I would like to style the Editor control using a .skin file within a theme.  However, when I try to view the page, I receive a Parser Error:

    Parser Error Message: Literal content ('<CE:Editor ConfigurationPath="~/CuteSoft_Client/GuestEditorConfig" AutoConfigure="None"
              SecurityPolicyFile="Guest_Editor.config"
              ThemeType="OfficeXP" Width="100%" BreakElement="P" MaxHTMLLength="10000">
    </CE:Editor>') is not allowed within a 'skin file'.

    Here is my .skin file:

    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
    <%--
    Default skin template. The following skins are provided as examples only.

    1. Named control skin. The SkinId should be uniquely defined because
       duplicate SkinId's per control type are not allowed in the same theme.

    <asp:GridView runat="server" SkinId="gridviewSkin" BackColor="White" >
       <AlternatingRowStyle BackColor="Blue" />
    </asp:GridView>

    2. Default skin. The SkinId is not defined. Only one default
       control skin per control type is allowed in the same theme.

    <asp:Image runat="server" ImageUrl="~/images/image1.jpg" />
    --%>
    <CE:Editor ConfigurationPath="~/CuteSoft_Client/GuestEditorConfig" AutoConfigure="None"
               SecurityPolicyFile="Guest_Editor.config"
               ThemeType="OfficeXP" Width="100%" BreakElement="P" MaxHTMLLength="10000">
    </CE:Editor>
  •  09-09-2005, 11:26 AM 10288 in reply to 10169

    Re: Configuring CuteEditor in an ASP.NET 2.0 Beta 2 .skin file.

    I found the solution to my own problem.  I left 'runat="server"' out of the skin.  Here is the way it should look:

    <CE:Editor runat="server"
               ConfigurationPath="~/CuteSoft_Client/GuestEditorConfig" AutoConfigure="None"
               SecurityPolicyFile="Guest_Editor.config"
               ThemeType="OfficeXP" Width="100%" BreakElement="P" MaxHTMLLength="100000" />

View as RSS news feed in XML