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

how to get newly added lines in kendo editor using jquery

1 Answer 83 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 25 Mar 2015, 11:24 AM


Hi

I am creating a custom email editor using kendo editor  to implement the forward email functionality like outlook so if user click on forward
button then some text should be added automatically like below

From: nameXXXX [mailto:xxxxxx@abc.com]

Sent: Monday, March 23, 2015 5:00 PM

To: demouser@gmail.com

Subject: test

and user can add new text line as a forward message.

So please suggest me how to find the newly added text from
Kendo Editor using jquery.

Please see the snap.



1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Mar 2015, 06:27 AM
Hello Jan,

The Editor content is HTML markup, which is placed inside the widget's editable area, i.e. Editor "body":

http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#fields-body

Once you have the Editor body, you can find the desired content by using standard jQuery selectors and DOM traversal methods.

https://api.jquery.com/category/selectors/

https://api.jquery.com/category/traversing/

The exact way to find the desired content (DOM elements) depends on the exact scenario and your preferences.

It is worth mentioning that since the user has full control over the editable area's content, there is never a guarantee that particular content will be present or found in a specific way.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Jan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or