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

Snippet insert from client script

2 Answers 66 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Henri
Top achievements
Rank 1
Henri asked on 19 Sep 2018, 01:29 PM

Hello,

Is there a way to insert some html at the current cursor position, but from some jQuery script instead of using the Toolbar snippet option ?

Best regards

Henri

2 Answers, 1 is accepted

Sort by
0
Henri
Top achievements
Rank 1
answered on 19 Sep 2018, 01:44 PM

Found the answer:

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

0
Dimitar
Telerik team
answered on 20 Sep 2018, 02:11 PM
Hello Henri,

You are indeed correct that the desired behavior can be achieved through the exec() method. Refer to the below API Reference for additional information:


Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
Henri
Top achievements
Rank 1
Answers by
Henri
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or