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

[Solved] How do I click event editor from user control which have ajaxmanager?

2 Answers 105 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Waranya
Top achievements
Rank 1
Waranya asked on 01 Feb 2008, 07:15 AM
I put editor in user control then i brown page and edit text in editor when click "Bold" or other event its was error that "Microsoft JScript runtime error: 'Document.selection' is null or not an object"
this error in WebResource.axd (

RadEditorCommandList[RadEditorNamespace.RADCOMMAND_BOLD]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_ITALIC]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_UNDERLINE]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_JUSTIFY_LEFT]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_JUSTIFY_RIGHT]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_JUSTIFY_CENTER]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_JUSTIFY_NONE]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_INDENT]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_OUTDENT]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_SELECT_ALL]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_UNLINK]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_JUSTIFY_FULL]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_STRIKETHROUGH]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_SUBSCRIPT]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_SUPERSCRIPT]=RadEditorCommandList[RadEditorNamespace.RADCOMMAND_ABSOLUTE_POSITION]=function(_10,_11,_12){

var _13=RadEditorNamespace.RADCOMMAND_SELECT_ALL!=_10;

_11.SetActive();

if(_11.Document.selection) ---- this line was error.
{

var rng=_11.Document.selection.createRange();

rng.select();

}

_11.ExecuteBrowserCommand(_10,_13,null);

};)

help me please?

pum..

2 Answers, 1 is accepted

Sort by
0
Waranya
Top achievements
Rank 1
answered on 01 Feb 2008, 07:35 AM
This problem because of I use RadAjaxManager in my user control so i can't put ScriptManager. how can i do?
0
Rumen
Telerik team
answered on 05 Feb 2008, 04:05 PM
Hi Pum,

The error that you have posted in your first message is pointing to RadEditor classic script. This means that you are not using the Prometheus version of RadEditor with RadAjax "Prometheus".

Our recommendation is to always use the classic RadEditor with the classic version of RadAjax for ASP.NET as well as RadEditor "Prometheus" with RadAjax "Prometheus". Thus you will avoid problems between the controls of the two suites.

If you still experience any problems, please open a support ticket and send a sample runnable project that demonstrates the problem. Please, include all project files and folders. We will examine the project and try to provide a working solution.

Best regards,
Rumen
the Telerik team

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