How do you define the path which CKEditor uses to search for config / language files?

风流意气都作罢 提交于 2019-11-29 09:06:15
AlfonsoML

That behavior that you describe isn't normal, for some reason CKEditor isn't identifying properly its own folder so you should set a CKEDITOR_BASEPATH variable before loading CKEditor.

It's briefly commented here: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.html#.basePath but there might be other places where it's explained better.

A successful implementation is therefore:

<script>
  window.CKEDITOR_BASEPATH = 'http://example.com/path/to/libs/ckeditor/';
</script>

Then load the main ckeditor.js script. Note you can use root-relative paths e.g. /path/to/libs/ckeditor/ but relative paths do not work.

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