2015-06-02 112 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/';