How to extract plain text from dojo editor

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to extract plain text from dojo editor

MG09
Extract the plain text from dojo rich text editor (for length check) and then store the html rich text in DB.
Is there any utility method which can extract the plain text?
Reply | Threaded
Open this post in threaded view
|

Re: How to extract plain text from dojo editor

dmountney
Calling get("value") on the editor will give you the contents as text.

If you trying to not include the tags for some reason, you should be able to ask for the innerText/textContent from the editor editNode directly.