主题: 出现错误了~~
作者: viger, 发布日期: 2007-05-07 17:24:01, 浏览数: 7412
我今天才找到这个编辑器,不错,主要是功能齐全,而且够小。
不过我在使用的时候发生了错误,说'KindEditor'未定义~~郁闷了~
我用的是PHP,准备用来做网站后台编辑器,后台都是事先写好的程序类调用的,不知道和编辑器冲突不?还有我用的是IE7.0
<script type="text/javascript" src="editor/KindEditor.js"></script>
<script type="text/javascript">
var editor = new KindEditor("editor");
editor.hiddenName = "gcontent";
editor.skinPath = "editor/skins/tiny/";
editor.iconPath = "editor/icons/";
editor.imageAttachPath = "editor/attached/";
editor.imageUploadCgi = "editor/upload_cgi/upload.php";
editor.cssPath = "editor/common.css";
editor.editorWidth = "700px";
editor.editorHeight = "400px";
editor.menuBorderColor = '#CCCCCC';
editor.menuBgColor = '#F0F0EE';
editor.menuTextColor = '#222222';
editor.menuSelectedColor = '#CCCCCC';
editor.toolbarBorderColor = '#CCCCCC';
editor.toolbarBgColor = '#F0F0EE';
editor.formBorderColor = '#CCCCCC';
editor.buttonColor = '#DDDDDD';
editor.show();
function KindSubmit() {
editor.data();
}
</script>
作者: viger, 发布日期: 2007-05-07 19:37:38
已解决!
愿意是我的页面默认是GB2312 而编辑器是UTF-8,冲突了,把编辑器重新保存,注意保存时候用GB2312编码就解决了~~
回复
发表新帖 发表回复