2015-06-02 41 views
0

我有一个问题,安装COOPS插件为CKEDITOR。 随着CKBuiled,我创建了一个CKE与coops插件,并且在我的Web服务器上传CKE应用程序后,我在CKE文件夹的config.js文件中设置了诸如readonly = true和serverUrl等文档中指示的东西,但是插件当我导航到CKE样本时,不会开始。CKEDITOR - 在CKEDITOR上安装Coops插件

我认为,它是serverUrl VALUE是错误的,我将它设置为"/files"(我可以在github上的coops-demo中看到)。

有人可以帮助我吗? 代码:

/** 
 
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. 
 
* For licensing, see LICENSE.md or http://ckeditor.com/license 
 
*/ 
 

 
CKEDITOR.editorConfig = function(config) { 
 
\t // Define changes to default configuration here. For example: 
 
\t config.language = 'fr'; 
 
\t // config.uiColor = '#AADC6E'; 
 
config.extraPlugins = 'coops'; 
 
config.extraPlugins = 'change'; 
 
config.extraPlugins = 'coops-connector'; 
 
config.extraPlugins = 'coops-dmp'; 
 
config.extraPlugins = 'coops-cursors'; 
 
config.readOnly = true; 
 
coops: { 
 
    serverUrl: '/files/'; 
 
} 
 

 
};

+0

粘贴编辑它,你在你的问题试图代码 – Viral

回答

0

我没有检查你的样品的细节,但检查的config.extraPlugins文档。您应该在一个声明中添加所有的extraPlugins值,否则您只是用另一个覆盖一个config.extraPlugins设置而不是扩展它。

所以:

config.extraPlugins = 'coops,change,coops-connector,coops-dmp,coops-cursors'; 
+0

是的,我更换配置与你说的一样,但它不会改变任何问题... – Orion

+0

任何人都可以帮助我吗? – Orion

0

看看这个链接...

https://github.com/foyt/coops-ckplugins

这一个是如何做到这一点的帮助。

而且你必须

server-url:'url'; 

port.Not添加URL只是添加本地文件结构..

EX:

server-url:'localhost:8080/ckeditor/sample/';