Hi!
I figuered out how to add an extra browse server button in the link window but how do i get it to use a diffrent config url
To this config.filebrowserSkyddadBrowseUrl = '/kcfinder/browse.php?type=skyddad'; (my owne config ,are not sure if I can do this)
insted of config.filebrowserBrowseUrl = '/kcfinder/browse.php?&type=file';
Here is the code from row 17 in the link.js file in plugginfolder
return false}return this.getDialog().fakeObj?true:CKEDITOR.dialog.validate.notEmpty(b.noUrl).apply(this)},setup:function(a){this.allowOnChange=false;a.url&&this.setValue(a.url.url);this.allowOnChange=true},commit:function(a){this.onChange();if(!a.url)a.url={};a.url.url=this.getValue();this.allowOnChange=false}}],setup:function(){this.getDialog().getContentElement("info","linkType")||this.getElement().show()}},{type:"button",id:"browse",hidden:"true",filebrowser:"info:url",label:i.browseServer},{type:"button",id:"browse2",hidden:"true",filebrowser:"info:url",label:"Hämta skyddad fil"}]} //This is the button that i want to open the other url
anybody understand the obove code better then me?
AND this is how you do it.......
{type:"button",id:"browse2",hidden:"true",filebrowser:{action:"Browse",target:"info:url",url:"/baksida/ckeditor/kcfinder/browse.php?type=skyddad"},label:"Hämta skyddad fil"}