Posted on: 01/26/16 10:39am
By: ::Ben
Previously the setting for
FCKeditor library was made in the public_html/siteconfig.php file
$_CONF_FCK['imagelibrary'] = '/images/custom_folder/library';
Switching to
CKeditor, the library is automaticaly set to
/images/library
Where can I set/change this?
Thanks.
Re: Setting CKeditor library
Posted on: 01/26/16 10:43am
By: ::Ben
In public_html/filemanager/index.php there is:
Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
'Image' => 'images/library/Image/',
'Flash' => 'images/library/Flash/',
'Media' => 'images/library/Media/',
'File' => 'images/library/File/',
'Root' => 'images/',
);
So where can I override this?
Re: Setting CKeditor library
Posted on: 01/26/16 01:50pm
By: Laugh
In the Geeklog Configuration under the Paths tab you will find the path_editors setting.
Under Users and Submissions and the Submissions tab you will find the config option advanced_editor and advanced_editor_name where you can enable and select which editor to use.
If you want to add another editor, to start you need to create a directory under the path_editors and add a functions.php with the correct info along with your editor files (plus any required changes).
Re: Setting CKeditor library
Posted on: 01/26/16 02:58pm
By: ::Ben
Hi Tom,
Thanks for the reply.
1. Path for editors is ok
2. Users can use the advanced editor is ok (CKeditor in my case)
What I need to do is to allow CKeditor to use the folder where the FCKeditor stored the files. Where can I set this without hacking the core files?
Re: Setting CKeditor library
Posted on: 01/26/16 03:28pm
By: Laugh
So you are switching from FCKeditor to the CKEditor and want to change the location that the CKEditor uses by default for the image locations.
Hmmm I am not sure. I haven't really played around with the editor code. I believe the CKEditor also uses the Geeklog File Manager for uploading/selecting the files so this may affect to components.
You should send an email to Dengen as he is the one who updated the editor integration and ask him to respond here with the answer.
If it can't be done without hacking core then you should add a feature request for this.
Re: Setting CKeditor library
Posted on: 01/26/16 04:06pm
By: ::Ben
Yes I try to switch from FCKeditor to CKeditor on a site where I just maked an upgrade from Geeklog 1.8.2 to 2.1.1.
Also, if I use the FCKeditor it is not honoring the setting from the siteconfig.php file. The filemanager display content from images/library not from /images/custom_folder/library
Re: Setting CKeditor library
Posted on: 01/26/16 04:34pm
By: mystral-kk
Quote by: ::BenIn public_html/filemanager/index.php there is:
Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
'Image' => 'images/library/Image/',
'Flash' => 'images/library/Flash/',
'Media' => 'images/library/Media/',
'File' => 'images/library/File/',
'Root' => 'images/',
);
So where can I override this?
As of Geeklog-2.1.1, the paths are hard-coded at the lines you quoted. If you would like to change these values, please rewrite them on your own, or make a feature request to make them configurable at
https://github.com/Geeklog-Core/geeklog/issues[*1] . Thanks.
Re: Setting CKeditor library
Posted on: 01/26/16 04:47pm
By: ::Ben
My hack to make it work:
In siteconfig.php
Text Formatted Code
$_CONF['site_enabled'] = true;
$_CONF_FCK['imagelibrary'] = '/images/custom_folder/library';
$_CONF_FCK['root'] = 'images/custom_folder/';
$_CONF_FCK['imgl'] = 'images/custom_folder/library';
and in filemanager/index.php
Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
'Image' => $_CONF_FCK['imgl'] . '/Image/',
'Flash' => $_CONF_FCK['imgl'] . '/Flash/',
'Media' => $_CONF_FCK['imgl'] . '/Media/',
'File' => $_CONF_FCK['imgl'] . '/File/',
'Root' => $_CONF_FCK['root'],
);
I will add a feature request.
Thanks.
Re: Setting CKeditor library
Posted on: 02/07/16 02:49am
By: mystral-kk
Quote by: ::BenMy hack to make it work:
In siteconfig.php
Text Formatted Code
$_CONF['site_enabled'] = true;
$_CONF_FCK['imagelibrary'] = '/images/custom_folder/library';
$_CONF_FCK['root'] = 'images/custom_folder/';
$_CONF_FCK['imgl'] = 'images/custom_folder/library';
and in filemanager/index.php
Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
'Image' => $_CONF_FCK['imgl'] . '/Image/',
'Flash' => $_CONF_FCK['imgl'] . '/Flash/',
'Media' => $_CONF_FCK['imgl'] . '/Media/',
'File' => $_CONF_FCK['imgl'] . '/File/',
'Root' => $_CONF_FCK['root'],
);
I will add a feature request.
Thanks.
Fixed with changeset 52f150a. The Filemanager will respect $_CONF_FCK['imagelibrary'], and optionally $_CONF_FCK['root'] and $_CONF_FCK['imgl'].
Re: Setting CKeditor library
Posted on: 02/07/16 08:30am
By: ::Ben
Thank you Mystral-kk
