我在html页面里导入CKEditor,<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Sample CKEditor Site</title>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
</head>
<body>
<form method="post">
<p>
My Editor:<br />
<textarea id="editor1" name="editor1"><p>Initial value.</p></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'editor1' );
</script>
</p>
<p>
<input type="submit" />
</p>
</form>
</body>
</html>
代码如上。但没有加载成功。
想问下是什么问题
<html>
<head>
<title>Sample CKEditor Site</title>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
</head>
<body>
<form method="post">
<p>
My Editor:<br />
<textarea id="editor1" name="editor1"><p>Initial value.</p></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'editor1' );
</script>
</p>
<p>
<input type="submit" />
</p>
</form>
</body>
</html>
代码如上。但没有加载成功。
想问下是什么问题
解决方案 »
- extjs4 panel重新加载问题
- 想知道Firebug如果追溯js函数,已经console.trace()用法?
- ajax返回值处理的问题
- location.href 跳转问题
- 紧急求助,如何在JS里实现正则表达去处所有HTML标签只保留<br>和
- Javascript菜鸟求助!为什么程序没有反应?
- 问一个关于js验证的问题(在某个区间的数字)
- 一个很急的问题,请教各位朋友,我的错在哪里?
- 求如何能够asp+javascript实现邮箱中上传附件那种形式的多文件上传代码
- 很酷的网页特效,就差一点就完成了。高手请进。
- js 判断文本框输入重复值...
- 这里有一段JS验证脚本帮忙解释下代表什么意思
2、 CKEDITOR.replace( 'editor1' );这句话没错吗
恩,解决了,是路径问题
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>