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

Lost the cursor position from editor after java script action does

1 Answer 26 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Hariharan
Top achievements
Rank 1
Hariharan asked on 08 Dec 2011, 06:36 AM
Telerik team,

I have face a new issue while try to implement the custom property inspector.

Here I attach a image,
<xref format="dita" href="#bnf_38311" otherprops="BNF:topic: Immunisation schedule" type="topic">
section 14.1
</xref>
If i click the text "section 14.1" in the yellow highlighted text,I can create a panel(with input fields) outside editor using java script .And i filled the selected tag attributes in the relevant fields.

But after filled ,the cursor from editor gone away. But i need that the cursor should stay in the selected position in this editor.

Is this natutre of editor or due to my operation in java script (create a panel outside for display the properties) should gone away?

Is any possibility should after create a panel,should stay the cursor in the editor itself.

Note:
One more point i found while investigating this issues,

When i click the tag,out side the editor panel created and the cursor should stay in that position in editor.

But when i click the outside input field,It moves out from editor to that fields.

Is any possibility to get the current position before leave from editor or get the selected tag details?

Kindly share your suggesstion/comments to solve my problem.

Thank you

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Dec 2011, 04:56 PM
Hello Hariharan,

I have two suggestions:
1) Try to store the selection and restore it using the getRange method.
2) If this does not work for your scenario, implement a custom module or a custom dialog which should store the selection.


Best wishes,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Hariharan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or