kendo ui - How to get plain text from kendoEditor? -


how text kendoeditor without style?

when use $("#id").data("kendoeditor").value() returning value style. want text without style.

try following snippet, fetch text within dom element:

function getclick(e) {     try {         var text = $('#editor').getkendoeditor().value()         var strippedtext = text.replace(/(<([^>]+)>)/ig,"");         alert(strippedtext);     }     catch (e) { } } 

bind html button:

<button class="k-button" id="btnpreviewcontent" onclick="getclick()">previeweditor content</button> 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -