var editor = new dhtmlXEditor(parent,name,width,type,index)
where
<div id='my_editor_here' style='width:600px; height:200px;'></div> <script> //common init code var editor = new dhtmlXEditor("my_editor_here"); </script>
Starting from 2.5 version, editor can be initialized by object notation
var editor = new dhtmlXEditor({ some_option1:some_value_1, some_option2:some_value_2, ... some_optionN:some_value_N, })
editor = new dhtmlXEditor({ parent:"my_editor_here", onFocusChanged:function(){ alert("Something changed..."); } });