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

[Solved] Editor unresponsive

1 Answer 66 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gordon
Top achievements
Rank 1
Gordon asked on 29 Nov 2010, 07:17 PM
I've created a simple project which uses the EditorFor htmlhelper to create a mvc editor.  However, the edtor doesn't really function.

In firefox i don't have any js errors reported, in IE8 i get;

Message: 'contentWindow' is null or not an object
Line: 1
Char: 54108
Code: 0
URI: http://localhost/TelerikEditorInPopup/Scripts/2010.3.1110/telerik.editor.min.js


I've attached the project, hoping someone can point out my obvious error.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 02 Dec 2010, 12:59 PM
Hi Gordon,

The cause of the error are the two editors for the same field, model.MyText1 (one TextBox and one Editor). This causes the page to render two components with the same ID (which is invalid markup) and the editor client-side object tries to initialize the first of them (the TextBox, which does not have the required markup).

The solution is to have unique component IDs (i.e. delete either the textbox or the editor from the page) - one editor for the model field is enough.

Regards,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Gordon
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or