@GS Developers:
In the GS 3.1 filebrowser.php there is the following code:
The check for "2" (as opposed to GS 3.0) prevents other instances of CKEditor (e.g. for I18N Custom Fields) from selecting an image, as they will be called with another function number.
I'm not sure what should be achieved with this weird code, but either remove the =="2" or use a code like this:
(Not sure if this is what was intended)
In the GS 3.1 filebrowser.php there is the following code:
Code:
<script type='text/javascript'>
function submitLink($funcNum, $url) {
if ($funcNum=="2"){
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; ?>').value=$url;
}
<?php } ?>
window.close();
}
</script>
I'm not sure what should be achieved with this weird code, but either remove the =="2" or use a code like this:
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>