mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7760 from open-sausages/pulls/4/fix-editor-public-resolve
BUG Fix themed editor.css url not being resolved properly
This commit is contained in:
commit
40b2aeb7a3
@ -631,11 +631,10 @@ class TinyMCEConfig extends HTMLEditorConfig
|
||||
|
||||
// Add standard editor.css
|
||||
$editorCSSFiles = $this->config()->get('editor_css');
|
||||
$resourceLoader = ModuleResourceLoader::singleton();
|
||||
if ($editorCSSFiles) {
|
||||
foreach ($editorCSSFiles as $editorCSS) {
|
||||
$path = ModuleResourceLoader::singleton()
|
||||
->resolveURL($editorCSS);
|
||||
$editor[] = Director::absoluteURL($path);
|
||||
$editor[] = $resourceLoader->resolveURL($editorCSS);
|
||||
}
|
||||
}
|
||||
|
||||
@ -643,7 +642,7 @@ class TinyMCEConfig extends HTMLEditorConfig
|
||||
$themes = HTMLEditorConfig::getThemes() ?: SSViewer::get_themes();
|
||||
$themedEditor = ThemeResourceLoader::inst()->findThemedCSS('editor', $themes);
|
||||
if ($themedEditor) {
|
||||
$editor[] = Director::absoluteURL($themedEditor);
|
||||
$editor[] = $resourceLoader->resolveURL($themedEditor);
|
||||
}
|
||||
|
||||
return $editor;
|
||||
|
Loading…
Reference in New Issue
Block a user