标签:
<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>
引入js和css文件
<div id="editorObj" style="width: 300px; height: 300px; border: #909090 1px solid;"></div>
定义显示编辑器的容器
<script type="text/javascript"> var editor; function doOnLoad() { editor = new dhtmlXEditor("editorObj"); } // another constructor function doOnLoad() { var editorObject = { parent: "editorObj", content: "<b>Editor</b> content"; // init content } editor = new dhtmlXEditor(editorObject); } </script>
定义生成编辑器的js函数, 之后调用doOnload函数即可
标签:
原文地址:http://www.cnblogs.com/tianhao/p/4272050.html