Page 1 of 1

CKEditor Image Browse - Root back directory

Posted: 24 Jan 2017, 00:16
by justanumber
Most likely out of ordinary use, but need to have root image path like:
../mathtest/data/img

Cannot seem to get working.
Have tried:

Code: Select all

protected $root = '../mathtest/data/img';

Code: Select all

protected $root = '/../mathtest/data/img';
and

Code: Select all

protected $root = '../mathtest';
protected $imgdr = '/data/img';
In past, have always used the fast and easy way:

Code: Select all

'filebrowserImageBrowseUrl': '/path_to/ckeditor/plugins/imgbrowse/imgbrowse.html?imgroot=img',
But that will not work with "?imgroot=../mathtest/data/img" either

Is there a way to use "../mathtest/data/img" with the plugin?

Many thanks in advance for your assistance.

CKEditor Image Browse - Root back directory

Posted: 24 Jan 2017, 06:59
by justanumber
My bad. Seems I was not going up extra directory.
Solved by adding extra "../"

Cheers!