2012-04-03 145 views
2

我想实现在www.ckeditor.com.插件赋予了时间戳示例,但该按钮不会显示在我的工具栏,即使我跟随相同的文件夹名称在其网站上这样的插件名称给出的所有步骤为plugin.js和image.And正确的地方,我添加在config.js文件CKEditor.confi.extraplugins和config.js.And在jsp页面中添加工具栏的名字我的代码是CKEDITOR自定义插件无法正常工作

<script language="JavaScript" src="/ckeditor/ckeditor_source.js"></script> 

window.onload = function(){        
CKEDITOR.replace('editor1', 
{        
fullPage : true, 
extraPlugins :'docprops', 
extraPlugins : 'timestamp', 
toolbar : 'LISToobar' 
    });               
    }; 

但一些如何时间戳按钮不显示在我toolbar.Please帮我

回答

5

不能定义两次extraPlugins,你必须添加插件SEPA以逗号分类:

<script type="text/javascript" src="/ckeditor/ckeditor_source.js"></script> 
<script type="text/javascript"> 
window.onload = function(){        
CKEDITOR.replace('editor1', 
{        
fullPage : true, 
extraPlugins :'docprops,timestamp', 
toolbar : 'LISToobar' 
    });               
}; 
</script> 
+0

有帮助,谢谢。 – Chetan 2012-07-24 06:41:19