Reputation: 1738
I'm using KCFinder with TinyMCE in my MVC3 application. My configuration looks like as follows
tinyMCE.init({
file_browser_callback: 'openKCFinder',
...........
...........
});
function openKCFinder(field_name, url, type, win) {
tinyMCE.activeEditor.windowManager.open({
file: '/kcfinder/browse.php?opener=tinymce&type=' + type,
title: 'KCFinder',
width: 700,
height: 500,
resizable: "yes",
inline: true,
close_previous: "no",
popup_css: false
}, {
window: win,
input: field_name
});
return false;
}
Here, when I Click on Image browser in TinyMCE window, It calls the URL '/kcfinder/browse.php?opener=tinymce&type=' + type'
But, Problem is, Instead of executing this browse.php
file, It's downloading the same file...
How to solve this?
Upvotes: 0
Views: 929
Reputation: 50832
This looks as if your webserver isn't configured correctly. Make sure it is able to interpret php
files. Do you use any other php script that are accessible?
Upvotes: 1