how to get newly added lines in kendo editor using jquery

2 posts, 0 answers
  1. Jan
    Jan avatar
    1 posts
    Member since:
    Oct 2014

    Posted 25 Mar 2015 Link to this post



    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.



  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 27 Mar 2015 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top