BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
<button id="rteValue">Get well formatted RTE Value</button>
@Html.EJS().RichTextEditor("toolbar").EnableXhtml(true).ToolbarSettings(e => e.Items((object)ViewBag.tools)).Created("created").Render()
<script>
var rteObj;
function created() {
rteObj = this;
}
document.getElementById('rteValue').addEventListener('click', getRTEValue);
function getRTEValue() {
var a = rteObj.getXhtml();
}
</script> |
@Html.EJS().RichTextEditor("toolbar").EnableXhtml(true).InsertImageSettings(obj => obj.SaveFormat(SaveFormat.Base64)).ToolbarSettings(e => e.Items((object)ViewBag.tools)).Created("created").Render() |