First commit
This commit is contained in:
33
cms/plugins/filebrowser/editorhooks/tinymce/tinymce.js
Normal file
33
cms/plugins/filebrowser/editorhooks/tinymce/tinymce.js
Normal file
@ -0,0 +1,33 @@
|
||||
|
||||
function wrFilebrowser (field_name, url, type, win) {
|
||||
poppedUpWin = win;
|
||||
inputField = field_name;
|
||||
|
||||
// alert("Field_Name: " + field_name + "nURL: " + url + "nType: " + type + "nWin: " + win); // debug/testing
|
||||
|
||||
var cmsURL = "%URL%";
|
||||
|
||||
if (cmsURL.indexOf("?") < 0) {
|
||||
cmsURL = cmsURL + "?type="+ type ;
|
||||
}
|
||||
else {
|
||||
cmsURL = cmsURL + "&type="+type ;
|
||||
}
|
||||
|
||||
tinyMCE.activeEditor.windowManager.open(
|
||||
{
|
||||
file : cmsURL,
|
||||
width : 800,
|
||||
height : 600,
|
||||
resizable : "yes",
|
||||
inline : "yes",
|
||||
close_previous : "no",
|
||||
popup_css : false
|
||||
},
|
||||
{
|
||||
window : win,
|
||||
input : field_name
|
||||
}
|
||||
);
|
||||
return false;
|
||||
}
|
Reference in New Issue
Block a user