我刚刚将CKEditor添加到我的网站,但是我的控制台出现以下错误:

我按照安装指南编写,因此我不知道出了什么问题.
简而言之,我的电话是这样的:
<textarea id="full-editor" name="full-editor" rows="10" columns="6"></textarea>
<script type="text/javascript">
CKEDITOR.replace('#full-editor');
</script>
Run Code Online (Sandbox Code Playgroud)
Cut*_*nja 12
啊啊..试试这个
#从里面的选择器中删除CKEDITOR.replace('#full-editor');
根据您分享的安装指南,这是您需要的
CKEDITOR.replace('full-editor'); // NO #. You must have got confused with jQuery
Run Code Online (Sandbox Code Playgroud)
这也发生过,每当我们之前把初始化脚本<textarea>.
确保放
<script>
CKEDITOR.replace( 'editor1' );
</script>
Run Code Online (Sandbox Code Playgroud)
在</body>标签之前(即关闭身体标签).
| 归档时间: |
|
| 查看次数: |
13923 次 |
| 最近记录: |