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

plain text

3 Answers 982 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 27 Apr 2017, 12:06 PM

Hi,

 

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

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 28 Apr 2017, 06:54 AM
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.
0
Daní
Top achievements
Rank 1
answered on 28 Apr 2017, 07:35 AM

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

0
Ivan Danchev
Telerik team
answered on 28 Apr 2017, 12:27 PM
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.
Tags
Editor
Asked by
Daní
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Daní
Top achievements
Rank 1
Share this question
or