plain text

4 posts, 0 answers
  1. Daní
    Daní avatar
    314 posts
    Member since:
    Feb 2008

    Posted 27 Apr 2017 Link to this post

    Hi,

     

    how can I get the plain text corresponding to the Editor's value?

     

    Thanks

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1693 posts

    Posted 28 Apr 2017 Link to this post

    Hello Dani,

    There is no Editor API method that converts the HTML set to its value to plain text but you can do so with javascript. Here's a sample dojo.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Daní
    Daní avatar
    314 posts
    Member since:
    Feb 2008

    Posted 28 Apr 2017 Link to this post

    Thanks Ivan

    Unfortunately the regex you supplied in your snippet does not have into acount break lines.

    I'll try to find a more sophisticated regex

     

    Regards

  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1693 posts

    Posted 28 Apr 2017 Link to this post

    Hello Dani,

    Apart from regex there are other approaches that you can use, see for example Felix' post in this stackoverflow thread.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top