2010-06-25, 19:33:16
It's actually quite simple after all... just do:
However, I found that after selecting an image (e.g. by double clicking) the path is wrong (/uploads/image.jpg).
Code:
function kcfinder_show() {
echo '
<div id="kcdemo">
<div id="kcbrowser">
<iframe name="kcfinder" id="kcframe" src="../plugins/kcfinder-1.7/browse.php" frameborder="0" width="100%" height="500px" marginwidth="0" marginheight="0" scrolling="yes" >
</iframe>
</div>
</div> ';
}
function kcfinder_editor(){
echo "
<script type=\"text/javascript\">
if(editor) {
editor.config.filebrowserBrowseUrl = \"../plugins/kcfinder-1.7/browse.php\";
editor.config.filebrowserWindowWidth = \"640\";
editor.config.filebrowserWindowHeight = \"480\";
}
</script>";
}
However, I found that after selecting an image (e.g. by double clicking) the path is wrong (/uploads/image.jpg).
-- Sam