我刚刚将 CKEditor 添加到我的网站,但我的控制台出现以下错误:
我关注了 installation guide正如它所写的那样,所以我不知道出了什么问题。
下面是我的电话的简要情况:
<textarea id="full-editor" name="full-editor" rows="10" columns="6"></textarea>
<script type="text/javascript">
CKEDITOR.replace('#full-editor');
</script>
最佳答案
啊..试试这个
从 CKEDITOR.replace('#full-editor');
中的选择器中删除 #
根据您分享的安装指南,这就是您所需要的
CKEDITOR.replace('full-editor'); // NO #. You must have got confused with jQuery
关于javascript - ckeditor: "a is undefined",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26597939/