| htmlarea一定要这么安装才好用 |
|
作者: |
hongliang |
类别: |
Java相关 |
发布日期: |
2004-09-05
17:42:48 |
总浏览: |
445 | |
1、定义 <script type="text/javascript"> <!--
_editor_url = "../htmlarea/"; _editor_lang = "en";
--> </script>
2、把htmlarea.js包含进来
<script type="text/javascript"
src="../htmlarea/htmlarea.js"></script>
3、定义initEditor()函数 <script type="text/javascript">
// load the plugin files
HTMLArea.loadPlugin("TableOperations");
var editor =
null;
function initEditor() { // create an editor
for the "c" textbox editor = new HTMLArea("c");
// register the TableOperations plugin with our editor
editor.registerPlugin(TableOperations);
editor.generate(); return false; }
--> </script>
4、改写<body
onload="initEditor">
需要注意的就是,不要用HTMLArea.replaceAll()这个方法,快速安装时简单好用,但是需要自己定义一些东西时,比如装上TableOperation插件,就不能用叻。 |
| |