How to integrate TinyMCE with hi_kcfinder?

Questions about how to install and problems installing - please read the documentation first!
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: How to integrate TinyMCE with hi_kcfinder?

Post by cmb » Sun Dec 30, 2012 3:15 pm

Well, so some further debugging: in the same file change the complete block following the newly inserted var_dump():

Code: Select all

    if ($cf['filebrowser']['external'] != FALSE) {
    $fbConnector = CMSIMPLE_BASE . 'plugins/' . $cf['filebrowser']['external'] . '/connectors/tinymce/tinymce.php';
echo 1;
    if (is_readable($fbConnector)) {
echo 2;
        include_once($fbConnector);
        $init_function = $cf['filebrowser']['external'] . '_tinymce_init';
        if (function_exists($init_function)) {
echo 3;
            $script = $init_function();
        }
    return $script;
    }

    } else { 
This should display "123".
Christoph M. Becker – Plugins for CMSimple_XH

sonnur
Posts: 24
Joined: Sat Dec 29, 2012 6:54 pm

Re: How to integrate TinyMCE with hi_kcfinder?

Post by sonnur » Sun Dec 30, 2012 3:23 pm

cmb wrote:Well, so some further debugging: in the same file change the complete block following the newly inserted var_dump():

Code: Select all

    if ($cf['filebrowser']['external'] != FALSE) {
    $fbConnector = CMSIMPLE_BASE . 'plugins/' . $cf['filebrowser']['external'] . '/connectors/tinymce/tinymce.php';
echo 1;
    if (is_readable($fbConnector)) {
echo 2;
        include_once($fbConnector);
        $init_function = $cf['filebrowser']['external'] . '_tinymce_init';
        if (function_exists($init_function)) {
echo 3;
            $script = $init_function();
        }
    return $script;
    }

    } else { 
This should display "123".
It gives a error 500 page :/ error.log is not updated.

sonnur
Posts: 24
Joined: Sat Dec 29, 2012 6:54 pm

Re: How to integrate TinyMCE with hi_kcfinder?

Post by sonnur » Sun Dec 30, 2012 3:28 pm

Just tried this code:

Code: Select all

  if ($cf['filebrowser']['external'] != FALSE) {
    if (is_readable($fbConnector)) {
echo 2;
        }
    return $script;
    } 
And it does not return 2...

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: How to integrate TinyMCE with hi_kcfinder?

Post by cmb » Sun Dec 30, 2012 3:38 pm

sonnur wrote:And it does not return 2...
So plugins/hi_kcfinder/connectors/tinymce/tinymce.php is not readable by the user who's running the PHP process. If in doubt give the file 777 permissions and try again. If it's still not readable, I assume that's a problem with the file ownership in combination with safe_mode or suEXEC.
Christoph M. Becker – Plugins for CMSimple_XH

sonnur
Posts: 24
Joined: Sat Dec 29, 2012 6:54 pm

Re: How to integrate TinyMCE with hi_kcfinder?

Post by sonnur » Sun Dec 30, 2012 3:43 pm

cmb wrote:
sonnur wrote:And it does not return 2...
So plugins/hi_kcfinder/connectors/tinymce/tinymce.php is not readable by the user who's running the PHP process. If in doubt give the file 777 permissions and try again. If it's still not readable, I assume that's a problem with the file ownership in combination with safe_mode or suEXEC.
No it does not work...
PHP info:
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value

Is there a fckeditor plugin?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: How to integrate TinyMCE with hi_kcfinder?

Post by cmb » Sun Dec 30, 2012 3:54 pm

sonnur wrote:safe_mode Off Off
Then it's quite likely related to suEXEC, which would also explain yesterdays problems with the default filebrowser.
sonnur wrote:Is there a fckeditor plugin?
FCKeditor is abandoned since 2008. But there's a plugin for its successor CKEditor.
Christoph M. Becker – Plugins for CMSimple_XH

sonnur
Posts: 24
Joined: Sat Dec 29, 2012 6:54 pm

Re: How to integrate TinyMCE with hi_kcfinder?

Post by sonnur » Sun Dec 30, 2012 3:56 pm

cmb wrote:
sonnur wrote:safe_mode Off Off
Then it's quite likely related to suEXEC, which would also explain yesterdays problems with the default filebrowser.

Is this something I can fix on my own or do I have to contact my host?
sonnur wrote:Is there a fckeditor plugin?
FCKeditor is abandoned since 2008. But there's a plugin for its successor CKEditor.
I will try it... :)

sonnur
Posts: 24
Joined: Sat Dec 29, 2012 6:54 pm

Re: How to integrate TinyMCE with hi_kcfinder?

Post by sonnur » Sun Dec 30, 2012 4:01 pm

ckeditor filebrowser works fine. Do you know a nice skin?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: How to integrate TinyMCE with hi_kcfinder?

Post by cmb » Sun Dec 30, 2012 4:05 pm

There are 3 skins already delivered with the CKEditor plugin: kama, office2003 and v2.
Christoph M. Becker – Plugins for CMSimple_XH

sonnur
Posts: 24
Joined: Sat Dec 29, 2012 6:54 pm

Re: How to integrate TinyMCE with hi_kcfinder?

Post by sonnur » Sun Dec 30, 2012 4:08 pm

cmb wrote:There are 3 skins already delivered with the CKEditor plugin: kama, office2003 and v2.
Just downloaded a skin named mono. Put it in the skin folder, I have choosed it in the ckeditor plugin config, but no editor does appear.. Maybe I have forgot something..

Post Reply