Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/459.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript CKEditor:多个config.js文件_Javascript_Ckeditor - Fatal编程技术网

Javascript CKEditor:多个config.js文件

Javascript CKEditor:多个config.js文件,javascript,ckeditor,Javascript,Ckeditor,我有2个使用CKEditor的HTML页面 在第1页中,我想使用默认的config.js文件 在第2页中,我想使用一个自定义的config.js文件 我将如何实现这一点 谢谢 您可以自定义配置选项并指定配置文件的路径 CKEDITOR.replace( 'editor1', { customConfig: '/custom/ckeditor_config.js' }); 更多信息-您可以自定义配置选项并指定配置文件的路径 CKEDITOR.replace( 'editor1', {

我有2个使用CKEditor的HTML页面

在第1页中,我想使用默认的config.js文件

在第2页中,我想使用一个自定义的config.js文件

我将如何实现这一点

谢谢

您可以自定义配置选项并指定配置文件的路径

CKEDITOR.replace( 'editor1', {
    customConfig: '/custom/ckeditor_config.js'
});
更多信息-

您可以自定义配置选项并指定配置文件的路径

CKEDITOR.replace( 'editor1', {
    customConfig: '/custom/ckeditor_config.js'
});
更多信息-

谢谢

作为一名程序员,我不得不玩一点

在标记前面的第2页html文件中,我添加了以下代码:

<script type="text/javascript">
    CKEDITOR.config.customConfig = "../customfolder/config.js";
    CKEDITOR.replace(content);
</script>
内容是文本区域的名称

谢谢

谢谢

作为一名程序员,我不得不玩一点

在标记前面的第2页html文件中,我添加了以下代码:

<script type="text/javascript">
    CKEDITOR.config.customConfig = "../customfolder/config.js";
    CKEDITOR.replace(content);
</script>
内容是文本区域的名称

谢谢