Merge pull request #8 from christopherdarling/patch-1

FIX: HtmlEditorConfig should be using content_css
This commit is contained in:
Will Rossiter 2015-10-27 09:17:24 +13:00
commit d71c638e0d

View File

@ -47,7 +47,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
$this->reportObject = (isset($allReports[$this->reportClass])) ? $allReports[$this->reportClass] : null;
// Set custom options for TinyMCE specific to ReportAdmin
HtmlEditorConfig::get('cms')->setOption('ContentCSS', project() . '/css/editor.css');
HtmlEditorConfig::get('cms')->setOption('content_css', project() . '/css/editor.css');
HtmlEditorConfig::get('cms')->setOption('Lang', i18n::get_tinymce_lang());
// Always block the HtmlEditorField.js otherwise it will be sent with an ajax request
@ -186,4 +186,4 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
return $form;
}
}
}