ckeditor:“a is undefined” [英] ckeditor: "a is undefined"

查看:185
本文介绍了ckeditor:“a is undefined”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I just added CKEditor to my website, but I'm getting the following error in my console:

我跟着安装指南因为它写的所以我不知道出了什么问题。

I followed the installation guide as it's written so I have no idea what's wrong.

简而言之,我的电话是这样的:

Here's, briefly, what my call looks like:

<textarea id="full-editor" name="full-editor" rows="10" columns="6"></textarea>

<script type="text/javascript">
    CKEDITOR.replace('#full-editor');
</script>


推荐答案

Aah ..试试这个

Aah.. try this

CKEDITOR.replace('#full-editor')中的选择器中删除;

Remove # from the selector inside CKEDITOR.replace('#full-editor');

根据您分享的安装指南,这就是您所需要的

According to installation guide you shared, this is what u need

CKEDITOR.replace('full-editor'); // NO #. You must have got confused with jQuery

这篇关于ckeditor:“a is undefined”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆