(2015-07-31, 02:07:27)datiswous Wrote: I think you're not supposed to change core files. There's probably a better way...
Can you post what code is added to edit.php?
I did not find another way to integrate RFM into CKEditor.
Because Filebrowser strictly tied to CKEdotor into edit.php level.
Plugin insirt next code into edit.php (to begining of file):
Code:
/*--- Modified by ResponsiveFileManager ---*/
/* CKEditor File Browser defaults settings */
global $GSEDITORBROWSER;
if(!isset($GSEDITORBROWSER) || $GSEDITORBROWSER == FALSE) {
$filebrowserBrowseUrl = 'filebrowser.php?type=all';
$filebrowserUploadUrl = '';
$filebrowserImageBrowseUrl = 'filebrowser.php?type=images';
$filebrowserWidth = '730';
$filebrowserHeight = '500';
}
And changed some variables in CKEditor initiation area:
Code:
var editor = CKEDITOR.replace( 'post-content', {
...
filebrowserBrowseUrl : '<?php echo $filebrowserBrowseUrl; ?>',
filebrowserImageBrowseUrl : '<?php echo $filebrowserImageBrowseUrl; ?>',
filebrowserWindowWidth : '<?php echo $filebrowserWidth; ?>',
filebrowserWindowHeight : '<?php echo $filebrowserHeight; ?>'
...
}
Code:
editor.addCommand("thumbDialog", new CKEDITOR.dialogCommand( 'thumbDialog' ) );
...
You can study source code of file by yourself.
Btw, Plugin has Roll Back function, so you can back at any time.