JavaScript API

This example shows how to use the RichTextEditor JavaScript API to read content, update content, and trigger editor actions from your application.




Example code

<div id="div_editor1" style="height: 260px"></div>
<script>
    var editor1cfg = {}
    var editor1 = new RichTextEditor("#div_editor1", editor1cfg);
    editor1.setHTMLCode("<p>Hello World</p>")
</script>