打開(kāi)\include\FCKeditor\fckconfig.js
把
1 2 3 4 | FCKConfig.ToolbarSets["Member"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ; |
替換成
1 2 3 4 | FCKConfig.ToolbarSets["Member"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','AddonUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ; |
把
1 2 3 4 | FCKConfig.ToolbarSets["MemberLit"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ; |
替換成
1 2 3 4 | FCKConfig.ToolbarSets["MemberLit"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','AddonUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ; |
打開(kāi)\include\FCKeditor\editor\js\fckeditorcode_ie.js 和\include\FCKeditor\editor\js\fckeditorcode_gecko.js
先編輯fckeditorcode_ie.js
在
1 | case 'Addon':B=new FCKDialogCommand('Addon',FCKLang.InsertAddon,'dialog/dede_addon.php',480,250);break; |
下面添加
1 | case 'AddonUser':B=new FCKDialogCommand('AddonUser',FCKLang.InsertAddon,'dialog/dede_addonuser.php',480,250);break; |
在
1 | case 'Addon':B=new FCKToolbarButton('Addon',FCKLang.InsertAddon,FCKLang.InsertAddon,null,false,true,76);break; |
下面添加
1 | case 'AddonUser':B=new FCKToolbarButton('AddonUser',FCKLang.InsertAddon,FCKLang.InsertAddon,null,false,true,76);break; |
同理fckeditorcode_gecko.js做類(lèi)似的修改
3.
在\include\FCKeditor\editor\dialog里,復(fù)制一份dede_addon.php,重命名為dede_addonuser.php。
編輯dede_addonuser.php
把
1 | require_once(dirname(__FILE__)."/../../../common.inc.php"); |
替換成
1 2 | require_once(dirname(__FILE__)."/../../../../member/config.php"); CheckRank(0,0); |
把
1 | window.open("../../../dialog/select_soft.php?f="+fname, "popUpSoftWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left="+posLeft+", top="+posTop); |
替換成
1 | window.open("../../../../member/uploads_select.php?mediatype=4&f="+fname, "popUpSoftWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left="+posLeft+", top="+posTop); |
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: dedecms織夢(mèng)前臺(tái)會(huì)員中心上傳附件方法