[英]Inserting CKEditor specialchar plugin into custom toolbar not working
[英]Ckeditor custom plugin is not working
我正在嘗試實現www.ckeditor.com中提供的時間戳示例插件。 但是,即使我按照他們網站上給出的所有步驟操作,也沒有在我的工具欄中顯示此按鈕,例如,插件名稱與文件夾名稱相同,plugin.js和圖像的正確位置。並且我在config.js中添加了CKEditor.confi.extraplugins文件並在config.js中的工具欄中添加名稱。在jsp頁面中,我的代碼是
<script language="JavaScript" src="/ckeditor/ckeditor_source.js"></script>
window.onload = function(){
CKEDITOR.replace( 'editor1',
{
fullPage : true,
extraPlugins :'docprops',
extraPlugins : 'timestamp',
toolbar : 'LISToobar'
});
};
但是一些時間戳按鈕沒有顯示在我的工具欄中。請幫助我
您不能兩次定義extraPlugins,必須添加以逗號分隔的插件:
<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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.