ckeditor: “a is undefined”

与世无争的帅哥 提交于 2019-12-05 02:58:38

Aah.. try this

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

This also happened whenever we put initializer script before <textarea>.

Ensure to put

<script>
  CKEDITOR.replace( 'editor1' );
</script>

before the </body> tag (i.e. closing body tag).

Yashvant Zala

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

Please add above code in external js file and include this js in html page after title page like

$(document).ready(function () {// save as  like ckEditorInclude.js
  CKEDITOR.replace('#full-editor');
}
<script src="Your folder path/ckEditorInclude.js" type="text/javascript"></script>
Jeewan Rai

This also happened whenever we put initializer script before . Ensure to put

CKEDITOR.replace( 'editor1' );

before the </body> tag (i.e. closing body tag).

This append to me because i was trying to use CKEDITOR.replace("editor") but there was no element in dom with Id or name "editor"

The issue for me was I copied the code locally from the cdn so that I can work on it if I am not online. I am using version 4.9.2 standard. Examining the chrome console gave several 404 errors which were not obvious using FireFox. Reverting back to the cdn resolved the issue. Unfortunately, no working offline with this it seems at least not for this version of ckeditor.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!