2012-06-17, 04:13:02
Replace in filebrowser.php
with the patch given in http://get-simple.info/forum/post/28066/#p28066
makes the WYSIWYG editor work fine and I can import images from my main editor as well as the one added through Custom Fields plugin.
Any ideas why the new install of GS3.1.1 works fine but updating a GS3.1 site by replacing the admin folder makes filebrowser.php act weird?
Code:
<script type='text/javascript'>
function submitLink($funcNum, $url) {
if ($funcNum!=""){
if(window.opener){
window.opener.CKEDITOR.tools.callFunction($funcNum, $url);
}
}
<?php if (isset($_GET['returnid'])){ ?>
if(window.opener){
window.opener.document.getElementById('<?php echo $returnid; ?>').focus();
window.opener.document.getElementById('<?php echo $returnid; ?>').value=$url;
}
<?php } ?>
<?php if (isset($_GET['func'])){
$func = @$_GET['func']; ?>
if(window.opener){
window.opener.<?php echo $func; ?>('<?php echo $returnid; ?>');
}
<?php } ?>
window.close();
}
</script>
Code:
<script type='text/javascript'>
function submitLink($funcNum, $url) {
<?php if (isset($_GET['returnid'])){ ?>
if(window.opener){
window.opener.document.getElementById('<?php echo $returnid; ?>').value=$url;
}
<?php } else { ?>
if(window.opener){
window.opener.CKEDITOR.tools.callFunction($funcNum, $url);
}
<?php } ?>
window.close();
}
</script>
Any ideas why the new install of GS3.1.1 works fine but updating a GS3.1 site by replacing the admin folder makes filebrowser.php act weird?