//html编辑器 if(strstr($modr[enter],"newstext<"))
{ $htmlareacode="<script type=\"text/javascript\"> _editor_url = \"editor\"; _editor_lang = \"en\"; </script>
<script type=\"text/javascript\" src=\"editor/htmlarea.php?userid=$logininid&username=$loginin&rnd=$loginrnd&classid=$classid&filepass=$filepass\"></script> <script type=\"text/javascript\" src=\"editor/plugins/FullPage/full-page.js\"></script> <script type=\"text/javascript\" src=\"editor/plugins/FullPage/lang/en.js\"></script>
<script type=\"text/javascript\"> //HTMLArea.loadPlugin(\"FullPage\");
var editor = null; var editor1 = null; 需增加内容 var editor2 = null;需增加内容 function initEditor() { editor = new HTMLArea(\"newstext\"); editor.registerPlugin(FullPage); editor.generate();
editor1 = new HTMLArea(\"字段名\");需增加内容 editor1.registerPlugin(FullPage);需增加内容 editor1.generate();需增加内容
editor2 = new HTMLArea(\"字段名\");需增加内容 editor2.registerPlugin(FullPage);需增加内容 editor2.generate();需增加内容
document.all['title'].focus(); return false; }
function DoFile(html) { editor.focusEditor(); editor.insertHTML(html); } </script>";
$onload=" onload=\"initEditor()\""; }
这个是根据楼主的方法试验成功,其它2个文件同样增加相关内容
|