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

Script Error using RadEditor

6 Answers 151 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Abilis Solutions
Top achievements
Rank 1
Abilis Solutions asked on 05 May 2008, 02:08 PM
I get a script error at the following line 

return this._window.document.selection.createRange();

when displaying the RadEditor. I cannot perform any editor functions and am presented with script errors.

I noticed that the problem only occurs when I use the RadEditor in a modal popup window(frame).
 
Environment
RadControls for ASP.Net AJAX
ASP.Net 2.0
VS.Net 2008
IE 7.0

Luke

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 May 2008, 12:58 PM
Hi Luke,

We are not aware of such a problem and you are the first to report it.

Could you please, open a support ticket and send a sample running project that demonstrates the problem? Please, include all project files and folders needed for deploying the web application on our side.

Once we are able to reproduce the problem on our side, we will do our best to help.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Abilis Solutions
Top achievements
Rank 1
answered on 08 May 2008, 01:02 PM
I have created a support ticket #
Ticket ID: 136120

that includes a sample project with two links. One link redirects to the page that contains RadEditor (works perfectly). The other link popup's a modal frame that calls the same page that hosts RadEditor. Lots of script errors.

Thanks,
Luke
0
Alex
Top achievements
Rank 1
answered on 07 Jul 2008, 01:43 PM
Hi Luke,

I have encounter the same error, could you help me out and let me know how you where able to solve this problem.

Thank you,

Alex.

0
Rumen
Telerik team
answered on 07 Jul 2008, 02:04 PM
Hello Alex,

The error reported in ticket 136120 was due to an IE bug and we were unable to reproduce it in Firefox. The available workaround is to remove the editor's DomInspector module from the editor's tools configuration e.g.
<telerik:RadEditor ID="radEAddendum" runat="server" Skin="Mac" Width="99%" EditModes="Design, Preview" height="95%" > 
<Modules> 
    <telerik:EditorModule Name="RadEditorStatistics" Visible="true" /> 
    <telerik:EditorModule Name="RadEditorHtmlInspector" Visible="true" /> 
    <telerik:EditorModule Name="RadEditorNodeInspector" Visible="true" /> 
</Modules> 
<Tools> 
<telerik:EditorToolGroup> 
    <telerik:EditorTool Name="Cut" /> 
    <telerik:EditorTool Name="Copy" /> 
    <telerik:EditorTool Name="Paste" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="Undo" /> 
    <telerik:EditorTool Name="Redo" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="FontName" /> 
    <telerik:EditorTool Name="FontSize" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="Bold" /> 
    <telerik:EditorTool Name="Italic" /> 
    <telerik:EditorTool Name="Underline" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="Paste" /> 
    <telerik:EditorTool Name="PasteFromWord" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="FindAndReplace" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="IncreaseSize" /> 
    <telerik:EditorTool Name="InsertHorizontalRule" /> 
    <telerik:EditorTool Name="InsertDate" /> 
    <telerik:EditorTool Name="InsertOrderedList" /> 
    <telerik:EditorTool Name="InsertParagraph" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="Indent" /> 
    <telerik:EditorTool Name="Outdent" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="JustifyCenter" /> 
    <telerik:EditorTool Name="JustifyFull" /> 
    <telerik:EditorTool Name="JustifyLeft" /> 
    <telerik:EditorTool Name="JustifyRight" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="Subscript" /> 
    <telerik:EditorTool Name="Superscript" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="SpellCheck" /> 
    <telerik:EditorSeparator /> 
    <telerik:EditorTool Name="Help" /> 
</telerik:EditorToolGroup> 
</Tools> 
<Content> 
</Content> 
</telerik:RadEditor> 

Best r
egards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Alex
Top achievements
Rank 1
answered on 07 Jul 2008, 04:11 PM

Thank you for responding so quickly.

I was able to by-pass that error using code that you have provided, but now the layout of the editor is looking funky, got a huge space between tool bar and actual content box, and on top of it I was able to type in there.

Alex.

0
Rumen
Telerik team
answered on 08 Jul 2008, 07:13 AM
Hi Alex,

Could you please, test with the following editor's declaration:

<telerik:RadEditor ID="radEAddendum" runat="server" >
    <Modules>
        <telerik:EditorModule Name="RadEditorStatistics" Visible="true" />
        <telerik:EditorModule Name="RadEditorHtmlInspector" Visible="false" />
        <telerik:EditorModule Name="RadEditorNodeInspector" Visible="false" />
    </Modules>
</telerik:RadEditor>

If you still experience any problems, please open a support ticket and send a screenshot of the problem and a sample runnable project that demonstrates it.

Kind regards,
Rumen
the Telerik team

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