<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxeditor_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js" type="text/javascript"></script>
<script src="../../codebase/dhtmlxeditor.js" type="text/javascript"></script>
<div id="editorObj" style="width: 100%; height: 300px; border: #909090 1px solid;"></div>
<input type="button" value="show html content" onclick="document.getElementById('res').value = editor.getContent()">
<textarea style="height:200px;width:100%;" name="res" id="res">
</textarea>
<script>dhtmlx.image_path = "../../codebase/imgs/";
var editor = new dhtmlXEditor("editorObj");
</script>