Html CKEditor:如何加载我自己的javascript文件

Html CKEditor:如何加载我自己的javascript文件,html,ckeditor,Html,Ckeditor,我正在我的web应用程序中使用CKEditor,而且是新手。看来我的js文件不是用CKEditor下载的,如何在CKEditor中包含外部js文件?与配置相关的js需要在config.js 所有与插件相关的文件都位于pluginsplugins/[plugin\u name]/plugin.js 您需要使用extraPluginsconfig.extraPlugins:'plugin', 如果你想做其他事情,你可以加载另一个.js 例如: <script type="text/javasc

我正在我的web应用程序中使用CKEditor,而且是新手。看来我的js文件不是用CKEditor下载的,如何在CKEditor中包含外部js文件?

与配置相关的js需要在
config.js

所有与插件相关的文件都位于plugins
plugins/[plugin\u name]/plugin.js
您需要使用extraPlugins
config.extraPlugins:'plugin',

如果你想做其他事情,你可以加载另一个.js

例如:

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="customcode.js"></script></code>

您创建了什么样的外部文件?插件?或者您正在尝试覆盖默认功能?@Mark:这是一个插件,我的js文件已经包含在网页中,不能与CKEditor一起使用。我认为必须有一些方法来添加css,例如config.contentsCss='/myFile.css';在config.jsI更新了我下面的答案后,您必须使用
config.exraPlugins
来包含插件
CKEDITOR.on( 'instanceReady', function( ev )
{
    alert("CKEditor is loaded");
});