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

add text at cursor position

2 Answers 428 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shaun
Top achievements
Rank 1
Shaun asked on 21 Aug 2013, 03:41 PM
Hello,

I know there is an InnertHtml button and I need to build the same functionality. working on other elements. 
How can I add text to the Kendo UI MVC Editor at the cursor position ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 22 Aug 2013, 12:42 PM
Hi Stuart,

The Custom Tools demo shows how to do this:

http://demos.kendoui.com/web/editor/custom-tools.html

editor.exec("inserthtml", { value: "..........." });


Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shaun
Top achievements
Rank 1
answered on 22 Aug 2013, 12:51 PM
perfect, thank you
Tags
Editor
Asked by
Shaun
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Shaun
Top achievements
Rank 1
Share this question
or