This is a migrated thread and some comments may be shown as answers.

[Solved] IE Error using CSSFiles

1 Answer 188 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Eddie
Top achievements
Rank 1
Eddie asked on 26 Sep 2007, 08:21 PM
I have an issue trying to use an external stylesheet.  When I click on the Apply Styles drop-down list, I get the following Javascript error:

Line: 1195
Char: 1
Error: Access is denied.
Code: 0
URL: http://localhost:49443/Editor/EditorTestPage.aspx

The app works fine in FireFox 2.0.07.  I am using IE 7.0.6000.16512, Windows Vista Home Premium.

My code:

=====================

<telerik:RadEditor ID="RadEditor1" runat="server" Skin="Vista" ContentAreaCssFile="mvwres:5-Telerik.Web.UI.Skins.Vista.EditorContentArea.css,Telerik.Web.UI, Version=2007.2.918.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4">
    <Tools>
        <telerik:EditorToolGroup Tag="Standards">
            <telerik:EditorTool Name="Bold" />
            <telerik:EditorTool Name="Italic" />
            <telerik:EditorTool Name="Underline" />
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup Tag="Styles">
            <telerik:EditorTool Name="ApplyClass" />
        </telerik:EditorToolGroup>
    </Tools>
   <CssFiles>
       <telerik:EditorCssFile Value="~/Editor/EditorTestStylesheet.css" />
   </CssFiles>
    <Content>
</Content>
</telerik:RadEditor>

=======================

Thanks!


1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 27 Sep 2007, 06:44 AM
Hello,

The problem seems to be coming from one of the editor properties - ContentAreaCssFile="mvwres:5-Telerik.Web.UI.Skins.Vista.EditorContentArea.css,Telerik.Web.UI, Version=2007.2.918.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

Please remove it from the code and the editor should work fine. It seems that the VS 2005 designer incorrectly set the default value of this property, which caused the JS error at runtime. We will try to correct this behavior for the next editor release.

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Eddie
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or