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
Post a Comment