mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix tinymce breaking in non-typical install location
This commit is contained in:
parent
81087ce15c
commit
38fdafb474
@ -21,10 +21,12 @@ class TinyMCEConfig extends HTMLEditorConfig {
|
|||||||
* - themes
|
* - themes
|
||||||
* - skins
|
* - skins
|
||||||
*
|
*
|
||||||
|
* If left blank defaults to ADMIN_THIRDPARTY_DIR . '/tinymce'
|
||||||
|
*
|
||||||
* @config
|
* @config
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private static $base_dir = 'framework/admin/thirdparty/tinymce';
|
private static $base_dir = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TinyMCE JS settings
|
* TinyMCE JS settings
|
||||||
@ -366,7 +368,7 @@ class TinyMCEConfig extends HTMLEditorConfig {
|
|||||||
// https://www.tinymce.com/docs/api/class/tinymce.editormanager/#baseURL
|
// https://www.tinymce.com/docs/api/class/tinymce.editormanager/#baseURL
|
||||||
$tinyMCEBaseURL = Controller::join_links(
|
$tinyMCEBaseURL = Controller::join_links(
|
||||||
Director::absoluteBaseURL(),
|
Director::absoluteBaseURL(),
|
||||||
$this->config()->base_dir
|
$this->config()->get('base_dir') ?: ADMIN_THIRDPARTY_DIR . '/tinymce'
|
||||||
);
|
);
|
||||||
$settings['baseURL'] = $tinyMCEBaseURL;
|
$settings['baseURL'] = $tinyMCEBaseURL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user